diff options
author | Karel Zak | 2016-10-04 16:33:09 +0200 |
---|---|---|
committer | Karel Zak | 2016-10-04 16:33:14 +0200 |
commit | 9e13b1c1c7116678722c52ead4e79fe5085bb2b2 (patch) | |
tree | 59926aad69e4bd1a5517eadd19fced671e15e216 /libmount/src/utils.c | |
parent | libblkid: check blkid_parse_tag_string() return code [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-9e13b1c1c7116678722c52ead4e79fe5085bb2b2.tar.gz kernel-qcow2-util-linux-9e13b1c1c7116678722c52ead4e79fe5085bb2b2.tar.xz kernel-qcow2-util-linux-9e13b1c1c7116678722c52ead4e79fe5085bb2b2.zip |
libmount: fix null-checking [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/utils.c')
-rw-r--r-- | libmount/src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c index aa4bc627e..29f259ffe 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -1171,7 +1171,7 @@ done: free(spec); if (dev) { *path = allocated ? dev : strdup(dev); - if (!path) + if (!*path) return -ENOMEM; return 0; } |