From 8a97d7252d96a8c8bb4817f90d450b262617d4fa Mon Sep 17 00:00:00 2001 From: Sung-Taek Hong Date: Thu, 17 Dec 2015 16:55:43 +0900 Subject: [PATCH] elm_photocam: add NULL check elm_photocam: add NULL check @fix Reviewers: woohyun, jaehwan, eunue Change-Id: I2f95e6b60644a624da896d4f7728f11d44b1d027 Signed-off-by: Sung-Taek Hong --- src/lib/elm_photocam.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c index 90f9eff..10904c5 100644 --- a/src/lib/elm_photocam.c +++ b/src/lib/elm_photocam.c @@ -1832,6 +1832,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(); -- 2.7.4