about summary refs log tree commit diff
path: root/src/nmcli/devices.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-12-03 22:59:09 +0100
committerMichael Biebl <biebl@debian.org>2022-12-03 22:59:09 +0100
commit06356c8ac470c1fa46f881b0598ec48a653e69ae (patch)
tree42e7714b4caedf4d23ebefd42d8d0afebc6f3569 /src/nmcli/devices.c
parent78ecd0c8a4a337e38470f3fae5db74daf61ba86a (diff)
parent372b62c2c25eb1f2e811f84849e9b69c40ae6245 (diff)
Merge branch 'debian/master' into debian/bullseye-backports
Diffstat (limited to 'src/nmcli/devices.c')
-rw-r--r--src/nmcli/devices.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nmcli/devices.c b/src/nmcli/devices.c
index 43bd3724..9b7ebce3 100644
--- a/src/nmcli/devices.c
+++ b/src/nmcli/devices.c
@@ -2919,6 +2919,8 @@ do_devices_monitor(const NMCCommand *cmd, NmCli *nmc, int argc, const char *cons
             nmc->return_value = NMC_RESULT_ERROR_USER_INPUT;
             return;
         }
+        if (!devices)
+            return;
     } else {
         /* No devices specified. Monitor all. */
         devices = nm_client_get_devices(nmc->client);