diff options
| author | Sami Kerola <kerolasa@iki.fi> | 2017-05-28 10:21:48 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2017-06-14 12:19:20 +0200 |
| commit | 1b5042636fa92c977d9a033f685ceb7f3c4c5fc9 (patch) | |
| tree | 39b83786d289855a5ba6cb51fe0ac10e2707e481 /disk-utils/cfdisk.c | |
| parent | e3e0054f5a2daa8ef8b8fd9b04bc9c0dbddec740 (diff) | |
| download | util-linux-1b5042636fa92c977d9a033f685ceb7f3c4c5fc9.tar.gz | |
misc: fix reassigned values before old ones has been used [cppcheck]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/cfdisk.c')
| -rw-r--r-- | disk-utils/cfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 37f998babb..efff1b8252 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; |
