diff options
author | Keith Packard <keithp@keithp.com> | 2009-09-06 13:04:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-09-06 13:04:31 -0700 |
commit | e35e485ffe6b26034788ab295121bc2693b7eec1 (patch) | |
tree | 2b8a6aca5a30cc5f2ad9b3e1afdd6928ef92a731 /ao-tools/ao-postflight | |
parent | 7a19aac5e881e635962a64fff73027ca2143b96f (diff) |
Initialize summary_name and detail_name so stuff appears on stdout.
Uninitialized variables lead to mysterious results.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-postflight')
-rw-r--r-- | ao-tools/ao-postflight/ao-postflight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/ao-postflight/ao-postflight.c b/ao-tools/ao-postflight/ao-postflight.c index c5814c93..6683c67c 100644 --- a/ao-tools/ao-postflight/ao-postflight.c +++ b/ao-tools/ao-postflight/ao-postflight.c @@ -205,7 +205,7 @@ main (int argc, char **argv) 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) { |