Code

po: update Spanish translation
[ncmpc.git] / src / plugin.c
index d7849009887ae92e9c1fba785376a2b465e6b098..b575e8c780133cec6aa1db2f43f07fb56c8143c5 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  
  * This program is free software; you can redistribute it and/or modify
@@ -340,9 +340,8 @@ make_argv(const char*const* args)
        /* reserve space for the program name */
        *ret++ = NULL;
 
-       do {
+       while (*args != NULL)
                *ret++ = g_strdup(*args++);
-       } while (*args != NULL);
 
        /* end of argument vector */
        *ret++ = NULL;