]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix typo from 255f5f4c770ebd46a38b58975bd33e33ae87ed24
authorKarel Zak <kzak@redhat.com>
Wed, 12 Aug 2020 17:48:47 +0000 (19:48 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Aug 2020 17:48:47 +0000 (19:48 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/parttype.c

index ec5debca7a9537eef74f81905f82dc2a8f5e8487..72c5e3613e90950b2d751d6ac6c5c8d24f369009 100644 (file)
@@ -438,7 +438,7 @@ struct fdisk_parttype *fdisk_label_advparse_parttype(
        struct fdisk_parttype *res = NULL;
        unsigned int code = 0;
 
-       if (!lb || lb->nparttypes)
+       if (!lb || !lb->nparttypes)
                return NULL;
 
        DBG(LABEL, ul_debugobj(lb, "parsing '%s' (%s) type", str, lb->name));