summaryrefslogtreecommitdiffstats
path: root/libmount/src/cache.c
diff options
context:
space:
mode:
authorOndrej Oprala2012-11-30 09:01:10 +0100
committerKarel Zak2012-11-30 10:34:08 +0100
commit90cd46cbbd26a1e26a65716704c7a6bd788f4aa4 (patch)
tree10512092387bf151b1e5de29fbd13d48116892da /libmount/src/cache.c
parentlibmount: add function attributes to public API (diff)
downloadkernel-qcow2-util-linux-90cd46cbbd26a1e26a65716704c7a6bd788f4aa4.tar.gz
kernel-qcow2-util-linux-90cd46cbbd26a1e26a65716704c7a6bd788f4aa4.tar.xz
kernel-qcow2-util-linux-90cd46cbbd26a1e26a65716704c7a6bd788f4aa4.zip
libmount: add function attributes to private API
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/cache.c')
-rw-r--r--libmount/src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/cache.c b/libmount/src/cache.c
index 34419cb62..2a8077c3a 100644
--- a/libmount/src/cache.c
+++ b/libmount/src/cache.c
@@ -342,7 +342,7 @@ int mnt_cache_device_has_tag(struct libmnt_cache *cache, const char *devname,
{
const char *path = cache_find_tag(cache, token, value);
- if (path && strcmp(path, devname) == 0)
+ if (path && devname && strcmp(path, devname) == 0)
return 1;
return 0;
}