From 99a1414924a840a059caa65147e36a6dc3ffdfc4 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Tue, 19 Nov 2013 19:35:48 +0000 Subject: [PATCH] show where --- phpdbg_cmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 765999b186..f65b9bedae 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -193,10 +193,16 @@ static inline phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_D case IN_STRING: phpdbg_error( - "Malformed command line @ %d!", l); + "Malformed command line (unclosed quote) @ %d: %s!", + (p - buffer)-1, &buffer[(p - buffer)-1]); break; } + if ((*argc) == 0) { + /* not needed */ + efree(argv); + } + return argv; } /* }}} */ -- 2.40.0