From: JunsuChoi Date: Tue, 20 Sep 2016 14:23:29 +0000 (+0900) Subject: edje_decc: modified fclose location X-Git-Tag: accepted/tizen/common/20160921.162828~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F88805%2F1;p=platform%2Fupstream%2Fefl.git edje_decc: modified fclose location modified fclose location. because of file pointer can become NULL. Change-Id: I6aa5a2dff76a80a6a39b49f3c74adf6aae636828 --- diff --git a/src/bin/edje/edje_decc.c b/src/bin/edje/edje_decc.c index 8c0dd3c..3d9b034 100644 --- a/src/bin/edje/edje_decc.c +++ b/src/bin/edje/edje_decc.c @@ -566,9 +566,9 @@ output(void) { if (fwrite(data, data_size, 1, f) != 1) ERR("Could not write sound: %s", strerror(errno)); + fclose(f); } else ERR("Could not open for writing sound: %s: %s", out1, strerror(errno)); - fclose(f); } } }