forked from enlightenment/efl
elm dbus menu - handle return value of eldbus_message_iter_arguments_get
handle possible error return of eldbus_message_iter_arguments_get() according to coverity CID 1353591. this should fix that.
This commit is contained in:
parent
9d8c829c2f
commit
05ad541534
|
@ -401,8 +401,9 @@ _event_handle(Elm_DBus_Menu *dbus_menu, Eldbus_Message_Iter *iter, int *error_id
|
||||||
Eldbus_Message_Iter *data;
|
Eldbus_Message_Iter *data;
|
||||||
unsigned *timestamp;
|
unsigned *timestamp;
|
||||||
|
|
||||||
eldbus_message_iter_arguments_get(iter, "isvu", &id, &event, &data,
|
if (!eldbus_message_iter_arguments_get(iter, "isvu", &id, &event, &data,
|
||||||
×tamp);
|
×tamp))
|
||||||
|
return EINA_FALSE;
|
||||||
i = id;
|
i = id;
|
||||||
item = eina_hash_find(dbus_menu->elements, &i);
|
item = eina_hash_find(dbus_menu->elements, &i);
|
||||||
if (!item)
|
if (!item)
|
||||||
|
|
Loading…
Reference in New Issue