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 --- disk-utils/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disk-utils/cfdisk.c') diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 37f998bab..efff1b825 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -323,7 +323,7 @@ static char *table_to_string(struct cfdisk *cf, struct fdisk_table *tb) { struct fdisk_partition *pa; struct fdisk_label *lb; - struct fdisk_iter *itr = NULL; + struct fdisk_iter *itr; struct libscols_table *table = NULL; struct libscols_iter *s_itr = NULL; char *res = NULL; -- cgit v1.2.3-55-g7522