summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/blkid/read.c
diff options
context:
space:
mode:
authorDenys Vlasenko2013-11-29 16:43:33 +0100
committerDenys Vlasenko2013-11-29 16:43:33 +0100
commit9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (patch)
treea950fa73740d345e11ba1ce90f4fc39ee12516e6 /e2fsprogs/old_e2fsprogs/blkid/read.c
parent1a7256ac38284caffd2a0de2250364369059be69 (diff)
downloadbusybox-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.zip
busybox-9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1.tar.gz
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/blkid/read.c')
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/read.c b/e2fsprogs/old_e2fsprogs/blkid/read.c
index f795a5d..feeda51 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/read.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/read.c
@@ -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++;