From: Keith Packard Date: Sun, 22 Nov 2009 06:11:45 +0000 (-0800) Subject: Don't crash if --plot isn't passed on ao-postflight command line X-Git-Tag: debian/0.6+43+gd6ba07e~4 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b84b634d9ae8ce6ab1c02833a3ed8514404e1ca3;ds=sidebyside Don't crash if --plot isn't passed on ao-postflight command line Crashing is not nice. Signed-off-by: Keith Packard --- 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) {