summaryrefslogtreecommitdiff
path: root/src/bin/edje/edje_decc.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:49:29 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:49:29 +0900
commit7e3367d82c4300fe2573f1bc5fb36840a923502b (patch)
treee7f3fb077323a77d9e1c2312089dbc80dccdab55 /src/bin/edje/edje_decc.c
parenta427fc46f77e54550ec34e490100a2736dee7ec1 (diff)
fix error handling in edje_decc
fix CID 1039341
Diffstat (limited to 'src/bin/edje/edje_decc.c')
-rw-r--r--src/bin/edje/edje_decc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/edje/edje_decc.c b/src/bin/edje/edje_decc.c
index f923f4fa9d..8c0dd3c9af 100644
--- a/src/bin/edje/edje_decc.c
+++ b/src/bin/edje/edje_decc.c
@@ -562,8 +562,12 @@ output(void)
562 exit(-1); 562 exit(-1);
563 } 563 }
564 f = fopen(out1, "wb"); 564 f = fopen(out1, "wb");
565 if (fwrite(data, data_size, 1, f) != 1) 565 if (f)
566 ERR("Could not write sound: %s", strerror(errno)); 566 {
567 if (fwrite(data, data_size, 1, f) != 1)
568 ERR("Could not write sound: %s", strerror(errno));
569 }
570 else ERR("Could not open for writing sound: %s: %s", out1, strerror(errno));
567 fclose(f); 571 fclose(f);
568 } 572 }
569 } 573 }