edje_decc: modified fclose location 05/88805/1
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 20 Sep 2016 14:23:29 +0000 (23:23 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 20 Sep 2016 14:23:29 +0000 (23:23 +0900)
   modified fclose location. because of file pointer can become NULL.

Change-Id: I6aa5a2dff76a80a6a39b49f3c74adf6aae636828

src/bin/edje/edje_decc.c

index 8c0dd3c..3d9b034 100644 (file)
@@ -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);
               }
           }
      }