diff options
author | Ted Gould <ted@gould.cx> | 2010-02-16 21:31:33 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-16 21:31:33 -0600 |
commit | c636c3e6adb411281646a446866ea0e737b6ba99 (patch) | |
tree | bbd5ce550681ca3054fe34738125e0eef3ad9dcb | |
parent | b6b2a65e651701650c2dbd6b99b5c44ec2dfb534 (diff) | |
download | libayatana-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.c | 4 |
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 */ |