]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: sd_device_enumerator_get_subsystem_next() requests the device list is... 9950/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Aug 2018 06:33:17 +0000 (15:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 Aug 2018 20:09:40 +0000 (05:09 +0900)
src/libsystemd/sd-device/device-enumerator.c

index 9f7783e86cd527df890d303f0bae91b2a73b7ee2..e1f60126b3ab470cb923e96496e7b2ebb93a7cc9 100644 (file)
@@ -935,7 +935,7 @@ _public_ sd_device *sd_device_enumerator_get_subsystem_first(sd_device_enumerato
 _public_ sd_device *sd_device_enumerator_get_subsystem_next(sd_device_enumerator *enumerator) {
         assert_return(enumerator, NULL);
 
-        if (enumerator->scan_uptodate ||
+        if (!enumerator->scan_uptodate ||
             enumerator->type != DEVICE_ENUMERATION_TYPE_SUBSYSTEMS)
                 return NULL;