From 1b5042636fa92c977d9a033f685ceb7f3c4c5fc9 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 28 May 2017 10:21:48 +0100 Subject: misc: fix reassigned values before old ones has been used [cppcheck] Signed-off-by: Sami Kerola --- libmount/src/tab_diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmount/src/tab_diff.c') diff --git a/libmount/src/tab_diff.c b/libmount/src/tab_diff.c index 7cf9e57ef..6caaa2a2d 100644 --- a/libmount/src/tab_diff.c +++ b/libmount/src/tab_diff.c @@ -305,8 +305,8 @@ done: static int test_diff(struct libmnt_test *ts, int argc, char *argv[]) { - struct libmnt_table *tb_old = NULL, *tb_new = NULL; - struct libmnt_tabdiff *diff = NULL; + struct libmnt_table *tb_old, *tb_new; + struct libmnt_tabdiff *diff; struct libmnt_iter *itr; struct libmnt_fs *old, *new; int rc = -1, change; -- cgit v1.2.3-55-g7522