]> granicus.if.org Git - php/commitdiff
- Removed unused variable
authorFelipe Pena <felipensp@gmail.com>
Mon, 18 Nov 2013 21:32:28 +0000 (19:32 -0200)
committerFelipe Pena <felipensp@gmail.com>
Mon, 18 Nov 2013 21:32:28 +0000 (19:32 -0200)
phpdbg_cmd.c

index a2eb51332840681455a540983d65b0d0a123b330..cff8c452b9808ca6e4014a1313e446bde528c7fc 100644 (file)
@@ -126,13 +126,11 @@ int phpdbg_do_cmd(        const phpdbg_command_t *command, char *cmd_line, size_t cmd_l
 #endif
        size_t expr_len = (cmd != NULL) ? strlen(cmd) : 0;
 
-       phpdbg_param_t *param = NULL;
-
        while (command && command->name && command->handler) {
                if ((command->name_len == expr_len && memcmp(cmd, command->name, expr_len) == 0)
                        || (expr_len == 1 && command->alias && command->alias == cmd_line[0])) {
 
-                       phpdbg_param_t lparam, 
+                       phpdbg_param_t lparam,
                                                   param;
 
                        phpdbg_parse_param(
@@ -141,7 +139,7 @@ int phpdbg_do_cmd(  const phpdbg_command_t *command, char *cmd_line, size_t cmd_l
                                &param TSRMLS_CC);
 
                        lparam = PHPDBG_G(lparam);
-                       
+
                        PHPDBG_G(lparam)        = param;
                        PHPDBG_G(lcmd)          = (phpdbg_command_t*) command;
 
@@ -161,7 +159,7 @@ int phpdbg_do_cmd(  const phpdbg_command_t *command, char *cmd_line, size_t cmd_l
                        } else {
                                rc = command->handler(&param TSRMLS_CC);
                        }
-                       
+
                        phpdbg_clear_param(&lparam TSRMLS_CC);
                        break;
                }