]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: check blkid_probe_set_magic() return value [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 12:00:42 +0000 (13:00 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 12:00:42 +0000 (13:00 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/partitions.c

index 6d8e86f63b30b9bc0d0405ee62c793e9d37a4aa1..80a6e8849296f14e3025f28479d0afd0b01c7470 100644 (file)
@@ -557,7 +557,7 @@ static int idinfo_probe(blkid_probe pr, const struct blkid_idinfo *id,
                                "%s probefunc failed\n", id->name));
                }
                if (rc == 0 && mag && chn && !chn->binary)
-                       blkid_probe_set_magic(pr, off, mag->len,
+                       rc = blkid_probe_set_magic(pr, off, mag->len,
                                        (unsigned char *) mag->magic);
 
                DBG(DEBUG_LOWPROBE, printf(