Skip to content

Commit 99a1414

Browse files
committed
show where
1 parent cfc62cd commit 99a1414

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

phpdbg_cmd.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,16 @@ static inline phpdbg_input_t** phpdbg_read_argv(char *buffer, int *argc TSRMLS_D
193193

194194
case IN_STRING:
195195
phpdbg_error(
196-
"Malformed command line @ %d!", l);
196+
"Malformed command line (unclosed quote) @ %d: %s!",
197+
(p - buffer)-1, &buffer[(p - buffer)-1]);
197198
break;
198199
}
199200

201+
if ((*argc) == 0) {
202+
/* not needed */
203+
efree(argv);
204+
}
205+
200206
return argv;
201207
} /* }}} */
202208

0 commit comments

Comments
 (0)