From: Zbigniew Jędrzejewski-Szmek Date: Fri, 3 May 2013 23:56:54 +0000 (-0400) Subject: systemctl: use GREEDY_REALLOC in one more place X-Git-Tag: v203~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e9dd0369e4b3fa05569521eb83ff8142e6dd9a7c systemctl: use GREEDY_REALLOC in one more place --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1905d0c05..3cca861cf 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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; }