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:
parent
0bd5a57a57
commit
6ff02eac41
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user