mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
systemctl-list-unit-files: drop workaround for Coverity
This partially reverts commit 0da999fada225d2d74b62ec758cd437a3e2f6ebb .
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);
|
n_units = hashmap_size(h);
|
||||||
|
|
||||||
units = new(UnitFileList, n_units ?: 1); /* avoid malloc(0) */
|
units = new(UnitFileList, n_units);
|
||||||
if (!units)
|
if (!units)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user