aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-16 21:31:33 -0600
committerTed Gould <ted@gould.cx>2010-02-16 21:31:33 -0600
commitc636c3e6adb411281646a446866ea0e737b6ba99 (patch)
treebbd5ce550681ca3054fe34738125e0eef3ad9dcb
parentb6b2a65e651701650c2dbd6b99b5c44ec2dfb534 (diff)
downloadlibayatana-indicator-c636c3e6adb411281646a446866ea0e737b6ba99.tar.gz
libayatana-indicator-c636c3e6adb411281646a446866ea0e737b6ba99.tar.bz2
libayatana-indicator-c636c3e6adb411281646a446866ea0e737b6ba99.zip
Making the function not recurse forever.
-rw-r--r--libindicator/indicator-desktop-shortcuts.c4
1 files 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 */