From d2a7d5aeca8789476549599b1266850d6cf4719c Mon Sep 17 00:00:00 2001 From: sin Date: Sat, 29 Nov 2014 21:32:53 +0000 Subject: [PATCH] Don't initialize unneeded variables in swaplabel(8) --- swaplabel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swaplabel.c b/swaplabel.c index 9f89b21..a9895d5 100644 --- a/swaplabel.c +++ b/swaplabel.c @@ -26,10 +26,10 @@ int main(int argc, char *argv[]) { int setlabel = 0; - int fd = -1; - char magic[10] = { 0 }; - char *label = NULL; - char *device = NULL; + int fd; + char magic[SWAP_MAGIC_LENGTH]; + char *label; + char *device; int i; ARGBEGIN {