journald: check return value of strappend

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-03-30 17:47:48 -04:00
parent 27f6e5c782
commit 4b94f3b8f7

View File

@ -250,10 +250,12 @@ static void dev_kmsg_record(Server *s, char *p, size_t l) {
break;
g = udev_list_entry_get_name(ll);
b = strappend("_UDEV_DEVLINK=", g);
if (g) {
IOVEC_SET_STRING(iovec[n++], b);
z++;
b = strappend("_UDEV_DEVLINK=", g);
if (b) {
IOVEC_SET_STRING(iovec[n++], b);
z++;
}
}
j++;