[hackers] [ubase] Don't initialize unneeded variables in swaplabel(8) || sin

From: <git_AT_suckless.org>
Date: Sat, 29 Nov 2014 22:33:08 +0100

commit d2a7d5aeca8789476549599b1266850d6cf4719c
Author: sin <sin_AT_2f30.org>
Date: Sat Nov 29 21:32:53 2014 +0000

    Don't initialize unneeded variables in swaplabel(8)

diff --git a/swaplabel.c b/swaplabel.c
index 9f89b21..a9895d5 100644
--- a/swaplabel.c
+++ b/swaplabel.c
_AT_@ -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 {
Received on Sat Nov 29 2014 - 22:33:08 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 29 2014 - 22:36:10 CET