systemctl: use GREEDY_REALLOC in one more place

parent 47838ab3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment