mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-08 14:41:51 +00:00
systemctl: use GREEDY_REALLOC in one more place
This commit is contained in:
@@ -1295,8 +1295,7 @@ static int list_jobs(DBusConnection *bus, char **args) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (!greedy_realloc((void**) &jobs, &size,
|
||||
sizeof(struct job_info) * (used + 1))) {
|
||||
if (!GREEDY_REALLOC(jobs, size, used + 1)) {
|
||||
r = log_oom();
|
||||
goto finish;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user