From 03448524ababb0768e33930fead549de3619cb4b Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 2 Jul 2013 09:54:30 +0100 Subject: [PATCH] Don't try to print out how many bytes we write to an eet file Unless we actually write something. NB: Fixes klockwork issue. Signed-off-by: Chris Michael --- src/bin/edje/edje_pick.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c index ad2208c595..e1dfb468c7 100644 --- a/src/bin/edje/edje_pick.c +++ b/src/bin/edje/edje_pick.c @@ -1348,10 +1348,11 @@ main(int argc, char **argv) /* Write file header after processing all groups */ 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)); + { + 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)); + } eina_list_free(images); eina_list_free(samples);