about summary refs log tree commit diff
path: root/src/nmcli/devices.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-11-18 17:49:21 +0100
committerMichael Biebl <biebl@debian.org>2022-11-18 17:49:21 +0100
commit35b6136bc39c77da74de1325e13871bc985c5352 (patch)
treef5d91944aa7b1df3b4cf397e617e9af9cfea89cf /src/nmcli/devices.c
parentc9f38062acbf43edb3b33c336ba19a449664c3de (diff)
parent913bcb40f6c699f8a38351c69e7ea263fe78f71f (diff)
Update upstream source from tag 'upstream/1.40.4'
Update to upstream version '1.40.4'
with Debian dir 7084cdfc71b038bf79ea5f3c53dfea86e49c80cb
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);