summaryrefslogtreecommitdiff
path: root/libudev/libudev-enumerate.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-09-08 22:11:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-08 22:11:04 +0200
commit78715f65c92a8892960e2a5fce945496939f8599 (patch)
treed18981188262514cf5be98702f4cd8bf3b5b39f1 /libudev/libudev-enumerate.c
parent04d4a6f85863552eaedc61cfeef5681776c8bb38 (diff)
fix randonm findings from llvm-clang-analyzer
Thanks to Lennart for the log file!
Diffstat (limited to 'libudev/libudev-enumerate.c')
-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 e30a406e5a..186abb927e 100644
--- a/libudev/libudev-enumerate.c
+++ b/libudev/libudev-enumerate.c
@@ -559,7 +559,7 @@ static int scan_dir_and_add_devices(struct udev_enumerate *udev_enumerate,
if (subdir1 != NULL)
l = util_strpcpyl(&s, l, "/", subdir1, NULL);
if (subdir2 != NULL)
- l = util_strpcpyl(&s, l, "/", subdir2, NULL);
+ util_strpcpyl(&s, l, "/", subdir2, NULL);
dir = opendir(path);
if (dir == NULL)
return -1;