blkid: fix blkid_probe_lookup_value() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2010-02-19 10:15:11 +01:00
parent dcc58f62c4
commit aaf8fffb35
1 changed files with 1 additions and 1 deletions

View 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;