eina_value: return null when eina_value_pget failed

Summary:
Add return value check.
found by coverity.

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7107
This commit is contained in:
Yeongjong Lee 2018-09-27 14:10:31 +09:00 committed by Hermet Park
parent 39de8cdc75
commit d2defeea7c
1 changed files with 1 additions and 1 deletions

View File

@ -2130,7 +2130,7 @@ eina_value_object_get(Eina_Value *v)
if (eina_value_type_get(v) != EINA_VALUE_TYPE_OBJECT)
return NULL;
eina_value_pget(v, &r);
if (!eina_value_pget(v, &r)) return NULL;
return r;
}