From e2b2918858419b4544812081ccfb57bd1134b769 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 2 Jul 2013 09:42:28 +0100 Subject: [PATCH] Check for valid output_filename before trying to use it. NB: Fixes klockwork issue. Signed-off-by: Chris Michael --- src/bin/edje/edje_pick.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c index c0ea301fc7..42e672cdbb 100644 --- a/src/bin/edje/edje_pick.c +++ b/src/bin/edje/edje_pick.c @@ -1385,7 +1385,8 @@ main(int argc, char **argv) if (sets) free(sets); - printf("Wrote <%s> output file.\n", output_filename); + if (output_filename) + printf("Wrote <%s> output file.\n", output_filename); return _edje_pick_cleanup(inp_files, out_file, EDJE_PICK_NO_ERROR); }