From bc278c7013af4d3533629d1f825eecc75948702b Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 19 Nov 2013 20:09:19 -0200 Subject: [PATCH] - Removed unused var --- phpdbg_cmd.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 6e03d5b3b24..db7774d7e00 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -212,7 +212,6 @@ phpdbg_input_t *phpdbg_read_input(TSRMLS_D) /* {{{ */ { if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { phpdbg_input_t *buffer = NULL; - size_t cmd_len = 0L; #ifndef HAVE_LIBREADLINE char *cmd = NULL; @@ -318,9 +317,9 @@ int phpdbg_do_cmd_ex(const phpdbg_command_t *command, phpdbg_input_t *input TSRM (command->alias && (input->argv[0]->length == 1) && (command->alias == *input->argv[0]->string))) { - + phpdbg_param_t param; - + param.type = EMPTY_PARAM; if (input->argc > 1) { @@ -331,18 +330,18 @@ int phpdbg_do_cmd_ex(const phpdbg_command_t *command, phpdbg_input_t *input TSRM sub.argv = &input->argv[1]; phpdbg_debug( - "trying sub commands in \"%s\" for \"%s\" with %d arguments", + "trying sub commands in \"%s\" for \"%s\" with %d arguments", command->name, sub.argv[0]->string, sub.argc-1); - + return phpdbg_do_cmd_ex(command->subs, &sub TSRMLS_CC); } else { phpdbg_parse_param( input->argv[1]->string, input->argv[1]->length, ¶m TSRMLS_CC); - } + } } - + phpdbg_debug( "found command %s for %s with %d arguments", command->name, input->argv[0]->string, input->argc-1); @@ -356,12 +355,12 @@ int phpdbg_do_cmd_ex(const phpdbg_command_t *command, phpdbg_input_t *input TSRM input->argv[arg]->length); } } - + PHPDBG_G(lcmd) = (phpdbg_command_t*) command; phpdbg_clear_param( &PHPDBG_G(lparam) TSRMLS_CC); PHPDBG_G(lparam) = param; - + rc = command->handler(¶m TSRMLS_CC); break; }