Cosmetic
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 17:53:31 +0000 (20:53 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 17:59:26 +0000 (20:59 +0300)
modules/control/http/macro.c

index 964f414..8dd01ce 100644 (file)
@@ -534,12 +534,13 @@ static void MacroDo( httpd_file_sys_t *p_args,
                 case MVLC_VLM_NEW:
                 case MVLC_VLM_SETUP:
                 {
-                    static const char *vlm_properties[11] =
+                    static const char *vlm_properties[] =
                     {
                         /* no args */
                         "enabled", "disabled", "loop", "unloop",
                         /* args required */
-                        "input", "output", "option", "date", "period", "repeat", "append",
+                        "input", "output", "option", "date", "period",
+                        "repeat", "append", "",
                     };
                     vlm_message_t *vlm_answer;
                     char name[512];
@@ -565,7 +566,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         p += sprintf( psz, "setup %s", name );
                     }
                     /* Parse the request */
-                    for( i = 0; i < 11; i++ )
+                    for( i = 0; vlm_properties[i][0]; i++ )
                     {
                         char val[512];
                         ExtractURIValue( p_request,