From 8726371fb8e54ca473df3369a6c4692b7588807c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 12 Sep 2011 15:33:04 +0200 Subject: libmount: variable dereferenced before check [smatch scan] Signed-off-by: Karel Zak --- libmount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/tab_update.c') diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 3d2bd00e9..f049e42c0 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -718,7 +718,7 @@ int mnt_update_table(struct libmnt_update *upd, struct libmnt_lock *lc) assert(upd); - if (!upd->filename || !upd) + if (!upd || !upd->filename) return -EINVAL; if (!upd->ready) return 0; -- cgit v1.2.3-55-g7522