summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_loopdev.c
diff options
context:
space:
mode:
authorKarel Zak2014-07-17 14:31:05 +0200
committerKarel Zak2014-07-17 14:31:05 +0200
commit98d391c0b66fbb9c3540b2612e433125c19b4fbd (patch)
tree8440d0d93231681c72408b56510c5d3f986f2bfc /libmount/src/context_loopdev.c
parentlibblkid: comparing an array to null is not useful [coverity scan] (diff)
downloadkernel-qcow2-util-linux-98d391c0b66fbb9c3540b2612e433125c19b4fbd.tar.gz
kernel-qcow2-util-linux-98d391c0b66fbb9c3540b2612e433125c19b4fbd.tar.xz
kernel-qcow2-util-linux-98d391c0b66fbb9c3540b2612e433125c19b4fbd.zip
libmount: add missing assert()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r--libmount/src/context_loopdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c
index f4525b3ad..632a528be 100644
--- a/libmount/src/context_loopdev.c
+++ b/libmount/src/context_loopdev.c
@@ -143,6 +143,7 @@ int mnt_context_setup_loopdev(struct libmnt_context *cxt)
int rc = 0, lo_flags = 0;
uint64_t offset = 0, sizelimit = 0;
+ assert(cxt);
assert(cxt->fs);
assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED));