summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-08-06 15:37:55 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-08-06 15:37:55 +0200
commit43c42ca454bccd0da581825d30bdb44b56ae3ef7 (patch)
tree14b095c54c751fcc8207bb86d42bcfe97d579ece
parent2a0c6867cb0c8120cc1b8f48b755abb2a405fef7 (diff)
libudev: silent gcc warning: may be used uninitialized in this function
-rw-r--r--libudev/libudev-enumerate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-enumerate.c b/libudev/libudev-enumerate.c
index 986c1fc3d5..e30a406e5a 100644
--- a/libudev/libudev-enumerate.c
+++ b/libudev/libudev-enumerate.c
@@ -251,7 +251,6 @@ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enumerate *ude
unsigned int i;
unsigned int max;
struct syspath *prev = NULL, *move_later = NULL;
- size_t move_later_prefix;
udev_list_cleanup_entries(udev_enumerate->udev, &udev_enumerate->devices_list);
qsort(udev_enumerate->devices, udev_enumerate->devices_cur, sizeof(struct syspath), syspath_cmp);
@@ -259,6 +258,7 @@ struct udev_list_entry *udev_enumerate_get_list_entry(struct udev_enumerate *ude
max = udev_enumerate->devices_cur;
for (i = 0; i < max; i++) {
struct syspath *entry = &udev_enumerate->devices[i];
+ size_t move_later_prefix = 0;
/* skip duplicated entries */
if (prev != NULL &&