systemctl: avoid crash when pattern expands to empty unit list
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 May 2021 20:49:56 +0000 (22:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Jul 2021 15:42:01 +0000 (17:42 +0200)
commitec52cddcce818b0033469ebbe40a500cd83d2664
tree207ec742ad4039ec3bd0e8eba62d2a4bbce79921
parent68ccbef7f0c6b6a81e5d8ad21f1ab9618e3000c5
systemctl: avoid crash when pattern expands to empty unit list

Fixes #19652.

(cherry picked from commit ffcd68385226d4b499dbff0123271e1d3fb8f516)
(cherry picked from commit 9a24f5edcc1c16f2afaa943dfd39f413322a5a0a)
src/systemctl/systemctl-edit.c