]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: allow return value to indicate error [cppcheck]
authorSami Kerola <kerolasa@iki.fi>
Tue, 7 Feb 2012 21:27:24 +0000 (22:27 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Feb 2012 13:07:12 +0000 (14:07 +0100)
[libblkid/src/probe.c:1207]: (style) Checking if unsigned variable 'len' is less than zero.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
libblkid/src/probe.c

index d7f24b28c6a80d54b9ca12c72e18b59ef79ced8b..024ce884064a8e0eb50eff028ecfcc3d756fdbfc 100644 (file)
@@ -1196,7 +1196,7 @@ int blkid_probe_vsprintf_value(blkid_probe pr, const char *name,
                const char *fmt, va_list ap)
 {
        struct blkid_prval *v;
-       size_t len;
+       ssize_t len;
 
        v = blkid_probe_assign_value(pr, name);
        if (!v)