From e9dd0369e4b3fa05569521eb83ff8142e6dd9a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 3 May 2013 19:56:54 -0400 Subject: [PATCH] systemctl: use GREEDY_REALLOC in one more place --- src/systemctl/systemctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1905d0c05aa..3cca861cf69 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; }