summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-09-13 14:12:54 +0200
committerAnthony G. Basile <blueness@gentoo.org>2013-09-14 09:43:08 -0400
commite82603384f32af27f08986450f403b997d11803d (patch)
tree072e4a4fc759b9e8d7a97c04045b87b746a60460
parent1cd005527ad26bf526f0deca1911056e7008da1c (diff)
libudev: fix move_later comparisoneudev/v1.3
At the beginning move_later is set to -1, but it is set to different value only if expression !move_later is true.
-rw-r--r--src/libudev/libudev-enumerate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c
index bc1e37d341..8146f27e4f 100644
--- a/src/libudev/libudev-enumerate.c
+++ b/src/libudev/libudev-enumerate.c
@@ -300,7 +300,7 @@ _public_ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enume
/* skip to be delayed devices, and move the to
* the point where the prefix changes. We can
* only move one item at a time. */
- if (!move_later) {
+ if (move_later == -1) {
move_later_prefix = devices_delay_later(udev_enumerate->udev, entry->syspath);
if (move_later_prefix > 0) {