ubase

suckless linux base utils
git clone git://git.suckless.org/ubase
Log | Files | Refs | README | LICENSE

commit d2a7d5aeca8789476549599b1266850d6cf4719c
parent aed9e3f6fa85851a35ad7bfb1b925e4feeb1a240
Author: sin <sin@2f30.org>
Date:   Sat, 29 Nov 2014 21:32:53 +0000

Don't initialize unneeded variables in swaplabel(8)

Diffstat:
Mswaplabel.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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 {