summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Taek Hong <sth253.hong@samsung.com>2015-12-17 16:09:30 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2015-12-17 16:18:09 +0900
commiteaa50a3d3acff454471cccb204f20da486e652c4 (patch)
tree7a1ff91b2c214d34c51203e0d4713b59eff1f63b
parent336cbdb99495ae72e7762c23b83b01ba6dd662be (diff)
downloadelementary-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.c3
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();