com php-src: - Removed unused var: phpdbg_cmd.c
| From: | Bob Weinand | Date: | Thu, 21 Nov 2013 00:06:44 +0000 |
| Subject: | com php-src: - Removed unused var: phpdbg_cmd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74737@lists.php.net to get a copy of this message | ||
Commit: d9b6f06aa0dd441e620e205e1bbe6314bfbd3770
Author: Felipe Pena <felipensp@gmail.com> Wed, 20 Nov 2013 22:06:44 -0200
Parents: e36b71800432fd40dced211e16e7c8dad1be4360
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d9b6f06aa0dd441e620e205e1bbe6314bfbd3770
Log:
- Removed unused var
Changed paths:
M phpdbg_cmd.c
Diff:
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index d96ada3..d7d8c0d 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);