From aaf8fffb353fc49d6cb48f62880bf67159f03062 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 19 Feb 2010 10:15:11 +0100 Subject: [PATCH] blkid: fix blkid_probe_lookup_value() usage Signed-off-by: Karel Zak --- misc-utils/blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5