]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: comparing an array to null is not useful [coverity scan]
authorKarel Zak <kzak@redhat.com>
Thu, 17 Jul 2014 12:20:03 +0000 (14:20 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Jul 2014 12:20:03 +0000 (14:20 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/partitions.c

index 04c75afa780386a65a9d5dcb06d0d5c953fddb40..ce46fb28355facddde1154058c804e4486ec7a12 100644 (file)
@@ -1143,7 +1143,7 @@ int blkid_partitions_strcpy_ptuuid(blkid_probe pr, char *str)
  */
 const char *blkid_parttable_get_id(blkid_parttable tab)
 {
-       return tab && tab->id && *tab->id ? tab->id : NULL;
+       return tab && *tab->id ? tab->id : NULL;
 }