@fix
Summary:
Only eet_connection_empty hasn't checking on NULL and try to read from field of object.
Add NULL-check for connection and return result of empty connection.
Reviewers: jpeg, cedric, myoungwoon
Subscribers: t.naumenko, NikaWhite
Differential Revision: https://phab.enlightenment.org/D4399
Change-Id: Ia080d4bb4b38a61377381977a159cb0e260055ea
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
EAPI Eina_Bool
eet_connection_empty(Eet_Connection *conn)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(conn, EINA_TRUE);
return conn->size ? EINA_FALSE : EINA_TRUE;
}
int size;
EINA_SAFETY_ON_NULL_RETURN_VAL(edd, NULL);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(data_in, NULL);
ret = _eet_data_descriptor_encode(NULL, edd, data_in, &size);
if (cipher_key && ret)