Fixed potential bug in run command
authorBob Weinand <bobwei9@hotmail.com>
Sun, 20 Apr 2014 11:28:11 +0000 (13:28 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 20 Apr 2014 11:28:11 +0000 (13:28 +0200)
phpdbg_parser.y

index be37781cd1b94b561e7031b6e09d91bc68992953..4a84504e2e569721993ee716c077f0f94f8e0adb 100644 (file)
@@ -147,15 +147,15 @@ parameter
                $$.str = $2.str;
                $$.len = $2.len;
        }
+       | T_RUN                 {
+               $$.type = RUN_PARAM;
+               $$.len = 0;
+       }
        | T_RUN T_INPUT                                         {       
                $$.type = RUN_PARAM; 
                $$.str = $2.str;
                $$.len = $2.len;
        }
-       | T_RUN                 {
-               $$.type = RUN_PARAM;
-               $$.len = 0;
-       }
        | T_OPCODE                                                              { $$ = $1; }
        | T_ADDR                                                                { $$ = $1; }
        | T_LITERAL                                                             { $$ = $1; }