From 7eadc8ef7eae1412bc5a4d9df969ba4a7f64db9f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 8 Aug 2019 06:58:52 -0700 Subject: 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 --- core/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/profile.c') diff --git a/core/profile.c b/core/profile.c index 2302822fe..c1bcc40fa 100644 --- a/core/profile.c +++ b/core/profile.c @@ -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; } -- cgit v1.2.3-70-g09d2