systemctl: rewrite code to explicitly take care of n_units==0 case
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Apr 2016 01:50:25 +0000 (21:50 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 May 2016 15:35:33 +0000 (11:35 -0400)
commit0da999fada225d2d74b62ec758cd437a3e2f6ebb
tree8b65e89383af92fb103fba5330663d2a7d096849
parentd2cc96a8e134e8166acb917f67b3e8b308e09370
systemctl: rewrite code to explicitly take care of n_units==0 case

Coverity was complaing, but it was a false positive (CID #1354669).
Nevertheless, it's better to rewrite the code so that units is never
null.
src/systemctl/systemctl.c