Don't try to print out how many bytes we write to an eet file Unless
authorChris Michael <cp.michael@samsung.com>
Tue, 2 Jul 2013 08:54:30 +0000 (09:54 +0100)
committerChris Michael <cp.michael@samsung.com>
Tue, 2 Jul 2013 08:54:30 +0000 (09:54 +0100)
we actually write something.

NB: Fixes klockwork issue.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/edje/edje_pick.c

index ad2208c..e1dfb46 100644 (file)
@@ -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);