int list_unit_files(int argc, char *argv[], void *userdata) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
_cleanup_free_ UnitFileList *units = NULL;
- size_t size = 0;
unsigned c = 0;
const char *state;
char *path;
while ((r = sd_bus_message_read(reply, "(ss)", &path, &state)) > 0) {
- if (!GREEDY_REALLOC(units, size, c + 1))
+ if (!GREEDY_REALLOC(units, c + 1))
return log_oom();
units[c] = (struct UnitFileList) {