From c636c3e6adb411281646a446866ea0e737b6ba99 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 21:31:33 -0600 Subject: Making the function not recurse forever. --- libindicator/indicator-desktop-shortcuts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libindicator/indicator-desktop-shortcuts.c b/libindicator/indicator-desktop-shortcuts.c index b6d5b1c..988e78e 100644 --- a/libindicator/indicator-desktop-shortcuts.c +++ b/libindicator/indicator-desktop-shortcuts.c @@ -322,9 +322,9 @@ is_valid_nick (gchar ** list, const gchar * nick) { if (*list == NULL) return FALSE; - if (g_strcmp0(*list, nick) == 0) + if (g_strcmp0(list[0], nick) == 0) return TRUE; - return is_valid_nick(list++, nick); + return is_valid_nick(&list[1], nick); } /* API */ -- cgit v1.2.3