From: Felipe Pena Date: Thu, 21 Nov 2013 00:06:44 +0000 (-0200) Subject: - Removed unused var X-Git-Tag: php-5.6.0alpha1~110^2~149^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9b6f06aa0dd441e620e205e1bbe6314bfbd3770;p=php - Removed unused var --- diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index d96ada36cd..d7d8c0d4fc 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -211,7 +211,6 @@ phpdbg_input_t **phpdbg_read_argv(char *buffer, int *argc TSRMLS_DC) /* {{{ */ phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */ { phpdbg_input_t *buffer = NULL; - size_t cmd_len = 0L; char *cmd = NULL; if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { @@ -318,52 +317,52 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, phpdbg_input_t *input TSRMLS_ phpdbg_param_t param; param.type = EMPTY_PARAM; - + if (input->argc > 1) { if (command->subs) { phpdbg_input_t sub = *input; - + sub.string += input->argv[0]->length; sub.length -= input->argv[0]->length; - + sub.string = phpdbg_trim( sub.string, sub.length, &sub.length); sub.argc--; sub.argv++; - + phpdbg_debug( "trying sub commands in \"%s\" for \"%s\" with %d arguments", command->name, sub.argv[0]->string, sub.argc-1); - + if (phpdbg_do_cmd(command->subs, &sub TSRMLS_CC) == SUCCESS) { efree(sub.string); return SUCCESS; } - + efree(sub.string); } - + /* no sub command found */ { char *store = input->string; - + input->string += input->argv[0]->length; input->length -= input->argv[0]->length; - + input->string = phpdbg_trim( input->string, input->length, &input->length); - + efree(store); } - + /* pass parameter on */ phpdbg_parse_param( input->string, input->length, ¶m TSRMLS_CC); } - + phpdbg_debug( "found command %s for %s with %d arguments", command->name, input->argv[0]->string, input->argc-1);