diff options
author | Sung-Taek Hong <sth253.hong@samsung.com> | 2015-12-17 16:09:30 +0900 |
---|---|---|
committer | Jaehwan Kim <jae.hwan.kim@samsung.com> | 2015-12-17 16:18:09 +0900 |
commit | eaa50a3d3acff454471cccb204f20da486e652c4 (patch) | |
tree | 7a1ff91b2c214d34c51203e0d4713b59eff1f63b | |
parent | 336cbdb99495ae72e7762c23b83b01ba6dd662be (diff) | |
download | elementary-eaa50a3d3acff454471cccb204f20da486e652c4.tar.gz |
elm_photocam: add NULL check
@fix
Reviewers: woohyun, jaehwan, eunue
Differential Revision: https://phab.enlightenment.org/D3429
-rw-r--r-- | src/lib/elm_photocam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c index d5a27c226..285428932 100644 --- a/src/lib/elm_photocam.c +++ b/src/lib/elm_photocam.c @@ -1708,6 +1708,9 @@ EAPI Evas_Load_Error elm_photocam_file_set(Elm_Photocam *obj, const char *file) { Eina_Bool ret; + + ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_NONE; + EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_NONE); if (eo_do_ret(obj, ret, efl_file_set(file, NULL))) return EVAS_LOAD_ERROR_NONE; Eina_Error err = eina_error_get(); |