com php-src: - Removed unused var: phpdbg_cmd.c phpdbg_ prompt.c

From: Date: Tue, 19 Nov 2013 21:40:01 +0000
Subject: com php-src: - Removed unused var: phpdbg_cmd.c phpdbg_ prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74788@lists.php.net to get a copy of this message
Commit: 4672313057f2eeddef3e289185d32e498ded6ba4 Author: Felipe Pena <felipensp@gmail.com> Tue, 19 Nov 2013 19:40:01 -0200 Parents: 2e3723f08f163344ab45f86a34c2bd777b8ed720 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4672313057f2eeddef3e289185d32e498ded6ba4 Log: - Removed unused var Changed paths: M phpdbg_cmd.c M phpdbg_prompt.c Diff: diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index f6a15b4..5b3de53 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 bb7dc00..2136f17 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;

« previous php.cvs (#74788) next »