fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
[platform/upstream/busybox.git] / e2fsprogs / old_e2fsprogs / blkid / read.c
index f795a5d..feeda51 100644 (file)
@@ -385,7 +385,7 @@ void blkid_read_cache(blkid_cache cache)
                        continue;
                end = strlen(buf) - 1;
                /* Continue reading next line if it ends with a backslash */
-               while (buf[end] == '\\' && end < sizeof(buf) - 2 &&
+               while (end < sizeof(buf) - 2 && buf[end] == '\\' &&
                       fgets(buf + end, sizeof(buf) - end, file)) {
                        end = strlen(buf) - 1;
                        lineno++;