Initialize summary_name and detail_name so stuff appears on stdout.
authorKeith Packard <keithp@keithp.com>
Sun, 6 Sep 2009 20:04:31 +0000 (13:04 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 6 Sep 2009 20:04:31 +0000 (13:04 -0700)
Uninitialized variables lead to mysterious results.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-postflight/ao-postflight.c

index c5814c93de4e7fe30fccd3a89c832aeb5693d4b1..6683c67c9f3a0624b4b2bd2435ca9ce65c34c76e 100644 (file)
@@ -205,7 +205,7 @@ main (int argc, char **argv)
        int                     c;
        int                     serial;
        char                    *s;
        int                     c;
        int                     serial;
        char                    *s;
-       char                    *summary_name, *detail_name;
+       char                    *summary_name = NULL, *detail_name = NULL;
 
        while ((c = getopt_long(argc, argv, "S:D:", options, NULL)) != -1) {
                switch (c) {
 
        while ((c = getopt_long(argc, argv, "S:D:", options, NULL)) != -1) {
                switch (c) {