]> git.sesse.net Git - vlc/commitdiff
Fix infinite loop introduced in [9142f0c6]
authorRafaël Carré <rafael.carre@gmail.com>
Thu, 8 Oct 2009 23:59:02 +0000 (01:59 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Thu, 8 Oct 2009 23:59:02 +0000 (01:59 +0200)
src/config/keys.c

index d7687c4d6dc5bc3b4087ad5fcd30bcc94b704710..6bb321d3da19178bdc38dcbc2c7234ebeb6648e1 100644 (file)
@@ -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;