anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
a4b143
From 3b93bf5a35b0bb7111754fbae75e7654b775506d Mon Sep 17 00:00:00 2001
a4b143
From: Lukas Nykryn <lnykryn@redhat.com>
a4b143
Date: Fri, 13 Sep 2013 14:12:54 +0200
a4b143
Subject: [PATCH] libudev: fix move_later comparison
a4b143
a4b143
At the beginning move_later is set to -1, but it is set to different
a4b143
value only if expression !move_later is true.
a4b143
---
a4b143
 src/libudev/libudev-enumerate.c | 2 +-
a4b143
 1 file changed, 1 insertion(+), 1 deletion(-)
a4b143
a4b143
diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c
a4b143
index bc1e37d..8146f27 100644
a4b143
--- a/src/libudev/libudev-enumerate.c
a4b143
+++ b/src/libudev/libudev-enumerate.c
a4b143
@@ -300,7 +300,7 @@ _public_ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enume
a4b143
                         /* skip to be delayed devices, and move the to
a4b143
                          * the point where the prefix changes. We can
a4b143
                          * only move one item at a time. */
a4b143
-                        if (!move_later) {
a4b143
+                        if (move_later == -1) {
a4b143
                                 move_later_prefix = devices_delay_later(udev_enumerate->udev, entry->syspath);
a4b143
 
a4b143
                                 if (move_later_prefix > 0) {