sd-rtnl: read_message - don't set group if not needed

This commit is contained in:
Tom Gundersen
2015-03-13 16:15:03 +01:00
parent f436aa11f7
commit 0964dcd772
+2 -2
View File
@@ -1474,7 +1474,7 @@ static int socket_recv_message(int fd, struct iovec *iov, uint32_t *_group, bool
return 0;
}
if (group)
if (_group)
*_group = group;
return r;
@@ -1500,7 +1500,7 @@ int socket_read_message(sd_rtnl *rtnl) {
assert(rtnl->rbuffer_allocated >= sizeof(struct nlmsghdr));
/* read nothing, just get the pending message size */
r = socket_recv_message(rtnl->fd, &iov, &group, true);
r = socket_recv_message(rtnl->fd, &iov, NULL, true);
if (r <= 0)
return r;
else