mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Removed unused variable
This commit is contained in:
parent
9b30877d56
commit
b649693a90
1 changed files with 3 additions and 5 deletions
|
@ -126,13 +126,11 @@ int phpdbg_do_cmd( const phpdbg_command_t *command, char *cmd_line, size_t cmd_l
|
||||||
#endif
|
#endif
|
||||||
size_t expr_len = (cmd != NULL) ? strlen(cmd) : 0;
|
size_t expr_len = (cmd != NULL) ? strlen(cmd) : 0;
|
||||||
|
|
||||||
phpdbg_param_t *param = NULL;
|
|
||||||
|
|
||||||
while (command && command->name && command->handler) {
|
while (command && command->name && command->handler) {
|
||||||
if ((command->name_len == expr_len && memcmp(cmd, command->name, expr_len) == 0)
|
if ((command->name_len == expr_len && memcmp(cmd, command->name, expr_len) == 0)
|
||||||
|| (expr_len == 1 && command->alias && command->alias == cmd_line[0])) {
|
|| (expr_len == 1 && command->alias && command->alias == cmd_line[0])) {
|
||||||
|
|
||||||
phpdbg_param_t lparam,
|
phpdbg_param_t lparam,
|
||||||
param;
|
param;
|
||||||
|
|
||||||
phpdbg_parse_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);
|
¶m TSRMLS_CC);
|
||||||
|
|
||||||
lparam = PHPDBG_G(lparam);
|
lparam = PHPDBG_G(lparam);
|
||||||
|
|
||||||
PHPDBG_G(lparam) = param;
|
PHPDBG_G(lparam) = param;
|
||||||
PHPDBG_G(lcmd) = (phpdbg_command_t*) command;
|
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 {
|
} else {
|
||||||
rc = command->handler(¶m TSRMLS_CC);
|
rc = command->handler(¶m TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
||||||
phpdbg_clear_param(&lparam TSRMLS_CC);
|
phpdbg_clear_param(&lparam TSRMLS_CC);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue