diff options
author | Karel Zak <kzak@redhat.com> | 2016-10-04 16:33:09 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2016-10-04 16:33:14 +0200 |
commit | 9e13b1c1c7116678722c52ead4e79fe5085bb2b2 (patch) | |
tree | 59926aad69e4bd1a5517eadd19fced671e15e216 | |
parent | e12e917bad78378ae3cfffcb12d0a9f7a1c3eedc (diff) | |
download | util-linux-9e13b1c1c7116678722c52ead4e79fe5085bb2b2.tar.gz |
libmount: fix null-checking [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
-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 aa4bc627e1..29f259ffef 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; } |