mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
systemctl: use GREEDY_REALLOC in one more place
This commit is contained in:
parent
47838ab325
commit
e9dd0369e4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user