summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libsystemd/sd-device/device-enumerator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd/sd-device/device-enumerator.c b/src/libsystemd/sd-device/device-enumerator.c
index 3af9e36a5a..39f769c35c 100644
--- a/src/libsystemd/sd-device/device-enumerator.c
+++ b/src/libsystemd/sd-device/device-enumerator.c
@@ -537,12 +537,12 @@ static int match_initialized(sd_device_enumerator *enumerator, sd_device *device
return true;
if (sd_device_get_devnum(device, NULL) >= 0)
- return true;
+ return false;
if (sd_device_get_ifindex(device, NULL) >= 0)
- return true;
+ return false;
- return false;
+ return true;
}
return (enumerator->match_initialized == MATCH_INITIALIZED_NO) == (r == 0);