summaryrefslogtreecommitdiff
path: root/extras/fstab_import
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 /extras/fstab_import
parent04d4a6f85863552eaedc61cfeef5681776c8bb38 (diff)
fix randonm findings from llvm-clang-analyzer
Thanks to Lennart for the log file!
Diffstat (limited to 'extras/fstab_import')
-rw-r--r--extras/fstab_import/fstab_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/fstab_import/fstab_import.c b/extras/fstab_import/fstab_import.c
index 98ee75f174..c66bffb25c 100644
--- a/extras/fstab_import/fstab_import.c
+++ b/extras/fstab_import/fstab_import.c
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
pos[0] = '\0';
label = str;
}
- if (matches_device_list(udev, devices, str)) {
+ if (matches_device_list(udev, devices, label)) {
print_fstab_entry(udev, mnt);
rc = 0;
break;
@@ -176,7 +176,7 @@ int main(int argc, char *argv[])
pos[0] = '\0';
uuid = str;
}
- if (matches_device_list(udev, devices, str)) {
+ if (matches_device_list(udev, devices, uuid)) {
print_fstab_entry(udev, mnt);
rc = 0;
break;