mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00:00
journald: check return value of strappend
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user