From 4672313057f2eeddef3e289185d32e498ded6ba4 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 19 Nov 2013 19:40:01 -0200 Subject: [PATCH] - Removed unused var --- phpdbg_cmd.c | 1 - phpdbg_prompt.c | 15 +++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index f6a15b487a..5b3de53ccc 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -287,7 +287,6 @@ phpdbg_input_t *phpdbg_read_input(TSRMLS_D) /* {{{ */ void phpdbg_destroy_input(phpdbg_input_t **input TSRMLS_DC) /*{{{ */ { if (*input) { - if ((*input)->string) { efree((*input)->string); } diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index bb7dc001e5..2136f17b4b 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -696,7 +696,7 @@ static PHPDBG_COMMAND(register) /* {{{ */ phpdbg_error( "The requested name (%s) is already in use", lcname); } - + efree(lcname); } break; @@ -919,11 +919,10 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ * size_t cmd_len = input->length; const char *start = (const char*) input->start; size_t offset = strlen(cmd)+(sizeof(" ")-1); - + if (zend_hash_exists(&PHPDBG_G(registered), cmd, strlen(cmd)+1)) { zval fname, *fretval, *farg = NULL; zend_fcall_info fci; - zend_fcall_info_cache fcic; zval **params[1]; @@ -961,7 +960,7 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ * } return SUCCESS; } - + return FAILURE; } /* }}} */ @@ -970,11 +969,11 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */ int ret = SUCCESS; phpdbg_input_t* input = phpdbg_read_input(TSRMLS_C); - + if (input && input->length > 0L) { do { phpdbg_do_cmd_ex(phpdbg_prompt_commands, input TSRMLS_CC); - + switch (ret = phpdbg_do_cmd(phpdbg_prompt_commands, input->string, input->length TSRMLS_CC)) { case FAILURE: if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { @@ -994,10 +993,10 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */ goto out; } } - + phpdbg_destroy_input(&input TSRMLS_CC); } while ((input = phpdbg_read_input(TSRMLS_C)) && (input->length > 0L)); - + if (!input->length) goto last; -- 2.40.0