]> err.no Git - util-linux/commitdiff
blkid: fix blkid_probe_lookup_value() usage
authorKarel Zak <kzak@redhat.com>
Fri, 19 Feb 2010 09:15:11 +0000 (10:15 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Feb 2010 09:15:11 +0000 (10:15 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/blkid.c

index 1dfea7cd5de39419c886c5e05d24cf41eda9848c..1a5db55025147b63721aa2f7877491dec12cc21a 100644 (file)
@@ -451,7 +451,7 @@ static int lowprobe_device(blkid_probe pr, const char *devname,     char *show[],
        if (rc < 0)
                goto done;      /* -1 = error, 1 = nothing, 0 = succes */
 
-       if (blkid_probe_lookup_value(pr, "PTTYPE", NULL, NULL))
+       if (blkid_probe_lookup_value(pr, "PTTYPE", NULL, NULL) == 0)
                /* partition table detected */
                has_pt = 1;