1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

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

This partially reverts commit 0da999fada .
This commit is contained in:
David Tardon 2023-03-28 15:20:12 +02:00
parent 0bd5a57a57
commit 6ff02eac41

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();