diff options
author | jiin.moon <jiin.moon@samsung.com> | 2015-07-28 00:46:05 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-07-28 03:05:37 +0200 |
commit | 29bcec06694f0eaa112344ccb22f0c389096fa38 (patch) | |
tree | 29c135968ceb68d0c28400a895734a80b0f03735 /src/bin/edje | |
parent | 3adb6127ffd382200b19a6b4372baac91818d86c (diff) |
edje_cc: fix dereference before null check
Summary:
Fix Coverity issue which reports a dereference before null check.
The enc_info can not has NULL point
because _edje_multisense_encode api calls exit() in case of failure
Reviewers: Hermet, Jaehyun, cedric
Reviewed By: cedric
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2794
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/bin/edje')
-rwxr-xr-x | src/bin/edje/edje_cc_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index 24066ad2ef..f96e2f3223 100755 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c | |||
@@ -1152,7 +1152,7 @@ data_thread_sounds(void *data, Ecore_Thread *thread EINA_UNUSED) | |||
1152 | #ifdef HAVE_LIBSNDFILE | 1152 | #ifdef HAVE_LIBSNDFILE |
1153 | if ((enc_info->file) && (!enc_info->encoded)) | 1153 | if ((enc_info->file) && (!enc_info->encoded)) |
1154 | eina_stringshare_del(enc_info->file); | 1154 | eina_stringshare_del(enc_info->file); |
1155 | if (enc_info) free(enc_info); | 1155 | free(enc_info); |
1156 | enc_info = NULL; | 1156 | enc_info = NULL; |
1157 | #endif | 1157 | #endif |
1158 | } | 1158 | } |