1
0
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:
Zbigniew Jędrzejewski-Szmek 2013-05-03 19:56:54 -04:00
parent 47838ab325
commit e9dd0369e4

View File

@ -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;
}