Code

screen_search: removed pointless loop in search_advanced_query()
authorMax Kellermann <max@duempel.org>
Fri, 2 Oct 2009 17:21:09 +0000 (19:21 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 2 Oct 2009 17:21:09 +0000 (19:21 +0200)
src/screen_search.c

index d0c0a78c074da96f5ab32c5e35f29f92da315b64..9f2fee13f0861aaa31cd46b2c26d5f5827af7d35 100644 (file)
@@ -211,11 +211,6 @@ search_advanced_query(char *query, struct mpdclient *c)
 
        strv = g_strsplit_set(query, ": ", 0);
 
-       i=0;
-       while (strv[i]) {
-               i++;
-       }
-
        memset(table, 0, 10*sizeof(int));
        memset(arg, 0, 10*sizeof(char *));