From: Karel Zak Date: Fri, 19 Feb 2010 09:15:11 +0000 (+0100) Subject: blkid: fix blkid_probe_lookup_value() usage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaf8fffb353fc49d6cb48f62880bf67159f03062;p=util-linux blkid: fix blkid_probe_lookup_value() usage Signed-off-by: Karel Zak --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 1dfea7cd..1a5db550 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -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;