journald: check return value of strappend

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-03-31 14:33:30 -04:00
parent 27f6e5c782
commit 4b94f3b8f7
+5 -3
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++;