Don't crash if --plot isn't passed on ao-postflight command line
authorKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2009 06:11:45 +0000 (22:11 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2009 06:11:45 +0000 (22:11 -0800)
Crashing is not nice.

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

index ed91be1..caa7fb7 100644 (file)
@@ -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) {