summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-11-21 22:11:45 -0800
committerKeith Packard <keithp@keithp.com>2009-11-21 22:11:45 -0800
commitb84b634d9ae8ce6ab1c02833a3ed8514404e1ca3 (patch)
tree6ccd3e86cd02a975b2dbdd640ddf0c05620541b3
parent2d77c18b15834046b7b79d49d87211828f2409e9 (diff)
Don't crash if --plot isn't passed on ao-postflight command line
Crashing is not nice. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/ao-postflight/ao-postflight.c2
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 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) {