Android: fix potential crash

I'm not sure about this one, as we test name at the start of the
function and event->name shouldn't be NULL, but hey, we have the safe
compare function, so let's use it.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-08-08 06:58:52 -07:00 committed by bstoeger
parent f3acb0ca02
commit 7eadc8ef7e

View file

@ -341,7 +341,7 @@ struct event *get_next_event_mutable(struct event *event, const char *name)
if (!name || !*name)
return NULL;
while (event) {
if (!strcmp(event->name, name))
if (same_string(event->name, name))
return event;
event = event->next;
}