mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
journald: check return value of strappend
This commit is contained in:
parent
27f6e5c782
commit
4b94f3b8f7
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user