From: Keith Packard Date: Sun, 6 Sep 2009 20:04:31 +0000 (-0700) Subject: Initialize summary_name and detail_name so stuff appears on stdout. X-Git-Tag: debian/0.5+77+gc57bd7f~8^2~9 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=e35e485ffe6b26034788ab295121bc2693b7eec1 Initialize summary_name and detail_name so stuff appears on stdout. Uninitialized variables lead to mysterious results. Signed-off-by: Keith Packard --- 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) {