elm_photocam: fix correct return value in elm_photocam_file_set

Test Plan: `elm_photocam_file_set(NULL, "file_name");`

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8473
This commit is contained in:
Yeongjong Lee 2019-03-26 15:04:52 +09:00 committed by Hermet Park
parent a026405a6a
commit d36beba2bb
1 changed files with 2 additions and 2 deletions

View File

@ -3359,8 +3359,8 @@ elm_photocam_zoom_mode_get(const Evas_Object *obj)
EAPI Evas_Load_Error
elm_photocam_file_set(Evas_Object *obj, const char *file)
{
ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_NONE;
EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_NONE);
ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_GENERIC;
EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_GENERIC);
if (efl_file_simple_load(obj, file, NULL)) return EVAS_LOAD_ERROR_NONE;
Eina_Error err = eina_error_get();