mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
busctl: add missing oom check
This commit is contained in:
@@ -190,6 +190,9 @@ static int list_bus_names(int argc, char **argv, void *userdata) {
|
||||
}
|
||||
|
||||
merged = new(char*, hashmap_size(names) + 1);
|
||||
if (!merged)
|
||||
return log_oom();
|
||||
|
||||
HASHMAP_FOREACH_KEY(v, k, names, iterator)
|
||||
merged[n++] = k;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user