Skip to content

Commit 4672313

Browse files
committed
- Removed unused var
1 parent 2e3723f commit 4672313

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

phpdbg_cmd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ phpdbg_input_t *phpdbg_read_input(TSRMLS_D) /* {{{ */
287287
void phpdbg_destroy_input(phpdbg_input_t **input TSRMLS_DC) /*{{{ */
288288
{
289289
if (*input) {
290-
291290
if ((*input)->string) {
292291
efree((*input)->string);
293292
}

phpdbg_prompt.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static PHPDBG_COMMAND(register) /* {{{ */
696696
phpdbg_error(
697697
"The requested name (%s) is already in use", lcname);
698698
}
699-
699+
700700
efree(lcname);
701701
} break;
702702

@@ -919,11 +919,10 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ *
919919
size_t cmd_len = input->length;
920920
const char *start = (const char*) input->start;
921921
size_t offset = strlen(cmd)+(sizeof(" ")-1);
922-
922+
923923
if (zend_hash_exists(&PHPDBG_G(registered), cmd, strlen(cmd)+1)) {
924924
zval fname, *fretval, *farg = NULL;
925925
zend_fcall_info fci;
926-
zend_fcall_info_cache fcic;
927926

928927
zval **params[1];
929928

@@ -961,7 +960,7 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ *
961960
}
962961
return SUCCESS;
963962
}
964-
963+
965964
return FAILURE;
966965
} /* }}} */
967966

@@ -970,11 +969,11 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
970969
int ret = SUCCESS;
971970

972971
phpdbg_input_t* input = phpdbg_read_input(TSRMLS_C);
973-
972+
974973
if (input && input->length > 0L) {
975974
do {
976975
phpdbg_do_cmd_ex(phpdbg_prompt_commands, input TSRMLS_CC);
977-
976+
978977
switch (ret = phpdbg_do_cmd(phpdbg_prompt_commands, input->string, input->length TSRMLS_CC)) {
979978
case FAILURE:
980979
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
@@ -994,10 +993,10 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
994993
goto out;
995994
}
996995
}
997-
996+
998997
phpdbg_destroy_input(&input TSRMLS_CC);
999998
} while ((input = phpdbg_read_input(TSRMLS_C)) && (input->length > 0L));
1000-
999+
10011000
if (!input->length)
10021001
goto last;
10031002

0 commit comments

Comments
 (0)