systemctl-list-unit-files: drop workaround for Coverity

This partially reverts commit 0da999fada .
This commit is contained in:
David Tardon
2023-04-12 17:09:38 +02:00
parent 0bd5a57a57
commit 6ff02eac41
+1 -1
View File
@@ -157,7 +157,7 @@ int verb_list_unit_files(int argc, char *argv[], void *userdata) {
n_units = hashmap_size(h);
units = new(UnitFileList, n_units ?: 1); /* avoid malloc(0) */
units = new(UnitFileList, n_units);
if (!units)
return log_oom();