From b84b634d9ae8ce6ab1c02833a3ed8514404e1ca3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 21 Nov 2009 22:11:45 -0800 Subject: [PATCH] Don't crash if --plot isn't passed on ao-postflight command line Crashing is not nice. Signed-off-by: Keith Packard --- ao-tools/ao-postflight/ao-postflight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ao-tools/ao-postflight/ao-postflight.c b/ao-tools/ao-postflight/ao-postflight.c index ed91be15..caa7fb74 100644 --- a/ao-tools/ao-postflight/ao-postflight.c +++ b/ao-tools/ao-postflight/ao-postflight.c @@ -536,7 +536,7 @@ main (int argc, char **argv) int has_raw = 0; int has_gps = 0; int has_kml = 0; - char *this_plot_name; + char *this_plot_name = NULL;; while ((c = getopt_long(argc, argv, "s:d:p:r:g:k:a", options, NULL)) != -1) { switch (c) { -- 2.30.2