From: Chris Michael Date: Fri, 28 Jun 2013 12:48:21 +0000 (+0100) Subject: Fix klockwork error: Null pointer may be dereferenced X-Git-Tag: submit/devel/efl/20131022.203902~546 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=204212131be862e87b69e83d5c322197e4c3a34a;p=platform%2Fupstream%2Fefl.git Fix klockwork error: Null pointer may be dereferenced Check for valid out_file before trying to use it. Signed-off-by: Chris Michael --- diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c index ea8a199..c0ea301 100644 --- a/src/bin/edje/edje_pick.c +++ b/src/bin/edje/edje_pick.c @@ -1347,8 +1347,9 @@ main(int argc, char **argv) _edje_pick_sound_dir_compose(samples, tones, out_file); /* Write file header after processing all groups */ - bytes = eet_data_write(out_file->ef, _edje_edd_edje_file, "edje/file", - out_file, comp_mode); + if (out_file) + bytes = eet_data_write(out_file->ef, _edje_edd_edje_file, "edje/file", + out_file, comp_mode); VERBOSE(EINA_LOG_INFO("Wrote <%d> bytes for file header.\n", bytes));