blkid-api: Fix incorrect pointer check 28/272228/1 submit/tizen/20220311.101315
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 11 Mar 2022 10:19:19 +0000 (11:19 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 11 Mar 2022 10:19:19 +0000 (11:19 +0100)
Change-Id: Iec1d8620e3e6e47d7be75bd82e96153457f6a5a4

src/blkid-api.c

index 765b0fc..9c2ddae 100644 (file)
@@ -25,7 +25,7 @@ blkid_partlist get_part_list(char *device_name, blkid_probe *pr) {
        assert(pr);
 
        *pr = blkid_new_probe_from_filename(device_name);
-       if (pr == NULL)
+       if (*pr == NULL)
                return NULL;
        blkid_partlist ls = blkid_probe_get_partitions(*pr);
        return ls;