From: Rafaël Carré Date: Thu, 8 Oct 2009 23:59:02 +0000 (+0200) Subject: Fix infinite loop introduced in [9142f0c6] X-Git-Tag: 1.1.0-ff~2966 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e1b52e49ccd3b3e429b382551d0d2d0657758fd2;p=vlc Fix infinite loop introduced in [9142f0c6] --- diff --git a/src/config/keys.c b/src/config/keys.c index d7687c4d6d..6bb321d3da 100644 --- a/src/config/keys.c +++ b/src/config/keys.c @@ -201,10 +201,9 @@ uint_fast32_t ConfigStringToKey (const char *name) { uint_fast32_t mods = 0; - const char *psz_parser = name; for (;;) { - psz_parser = strchr (psz_parser, '-'); + const char *psz_parser = strchr (name, '-'); if (psz_parser == NULL || psz_parser == name) break;