diff options
author | Karel Zak | 2013-03-27 14:12:37 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-27 14:12:37 +0100 |
commit | eb542dff6a919aafaa9ca3febe77fbe8fdaf1790 (patch) | |
tree | d3a1886dafa57d935004275c1ca9ea1cbe95468e /libblkid/src/devname.c | |
parent | fsck.cramfs: check returns [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-eb542dff6a919aafaa9ca3febe77fbe8fdaf1790.tar.gz kernel-qcow2-util-linux-eb542dff6a919aafaa9ca3febe77fbe8fdaf1790.tar.xz kernel-qcow2-util-linux-eb542dff6a919aafaa9ca3febe77fbe8fdaf1790.zip |
libblkid: check returns [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/devname.c')
-rw-r--r-- | libblkid/src/devname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c index b27b6612c..dc2e0caa6 100644 --- a/libblkid/src/devname.c +++ b/libblkid/src/devname.c @@ -568,7 +568,8 @@ static int probe_all_removable(blkid_cache cache) continue; if (sysfs_init(&sysfs, devno, NULL) == 0) { - sysfs_read_int(&sysfs, "removable", &removable); + if (sysfs_read_int(&sysfs, "removable", &removable) != 0) + removable = 0; sysfs_deinit(&sysfs); } |