com php-src: - Removed unused variable: phpdbg_cmd.c
| From: | Bob Weinand | Date: | Mon, 18 Nov 2013 21:32:28 +0000 |
| Subject: | com php-src: - Removed unused variable: phpdbg_cmd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74831@lists.php.net to get a copy of this message | ||
Commit: b649693a90cac6593b3738d8ddf81c777e1f242e
Author: Felipe Pena <felipensp@gmail.com> Mon, 18 Nov 2013 19:32:28 -0200
Parents: 9b30877d56fe0f01c0f171eaafd37c967b26ed3e
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b649693a90cac6593b3738d8ddf81c777e1f242e
Log:
- Removed unused variable
Changed paths:
M phpdbg_cmd.c
Diff:
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index a2eb513..cff8c45 100644
--- a/phpdbg_cmd.c
+++ b/phpdbg_cmd.c
@@ -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
¶m 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(¶m TSRMLS_CC);
}
-
+
phpdbg_clear_param(&lparam TSRMLS_CC);
break;
}