summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_diff.c
diff options
context:
space:
mode:
authorSami Kerola2017-05-28 11:21:48 +0200
committerKarel Zak2017-06-14 12:19:20 +0200
commit1b5042636fa92c977d9a033f685ceb7f3c4c5fc9 (patch)
tree39b83786d289855a5ba6cb51fe0ac10e2707e481 /libmount/src/tab_diff.c
parentisosize: avoid reading more data than what is needed (diff)
downloadkernel-qcow2-util-linux-1b5042636fa92c977d9a033f685ceb7f3c4c5fc9.tar.gz
kernel-qcow2-util-linux-1b5042636fa92c977d9a033f685ceb7f3c4c5fc9.tar.xz
kernel-qcow2-util-linux-1b5042636fa92c977d9a033f685ceb7f3c4c5fc9.zip
misc: fix reassigned values before old ones has been used [cppcheck]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libmount/src/tab_diff.c')
-rw-r--r--libmount/src/tab_diff.c4
1 files changed, 2 insertions, 2 deletions
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;