]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: add variable initialization
authorSami Kerola <kerolasa@iki.fi>
Mon, 25 Jul 2011 20:20:03 +0000 (22:20 +0200)
committerSami Kerola <kerolasa@iki.fi>
Tue, 26 Jul 2011 16:15:14 +0000 (18:15 +0200)
The only variable found causing `conditional jump or move depends
on uninitialized value' is fixed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
hwclock/hwclock.c

index f070b19aa7a9bf2d6877a1203273b9e84b513d17..cb5b5b64d2d28b641628520f59b2ed9ba20a49d9 100644 (file)
@@ -1511,9 +1511,9 @@ int main(int argc, char **argv)
        /* Set option defaults */
        show = set = systohc = hctosys = systz = adjust = noadjfile = predict =
            FALSE;
-       getepoch = setepoch = utc = local_opt = testing = debug = FALSE;
+       getepoch = setepoch = utc = local_opt = directisa = testing = debug = FALSE;
 #ifdef __alpha__
-       ARCconsole = Jensen = SRM = funky_toy = directisa = badyear = FALSE;
+       ARCconsole = Jensen = SRM = funky_toy = badyear = FALSE;
 #endif
        date_opt = NULL;