devilhorns pushed a commit to branch master.

commit e2b2918858419b4544812081ccfb57bd1134b769
Author: Chris Michael <[email protected]>
Date:   Tue Jul 2 09:42:28 2013 +0100

    Check for valid output_filename before trying to use it.
    
    NB: Fixes klockwork issue.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 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 c0ea301..42e672c 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);
 }

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to