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 --- sys-utils/swapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/swapon.c') diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index f4ca781d8..6bd057dd2 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -501,7 +501,7 @@ static void swap_get_info(struct swap_device *dev, const char *hdr) static int swapon_checks(const struct swapon_ctl *ctl, struct swap_device *dev) { struct stat st; - int fd = -1, sig; + int fd, sig; char *hdr = NULL; unsigned long long devsize = 0; int permMask; -- cgit v1.2.3-55-g7522