summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--phpdbg_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index 4d34be74a9..95e1642368 100644
--- a/phpdbg_cmd.c
+++ b/phpdbg_cmd.c
@@ -585,7 +585,7 @@ PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param
return FAILURE; \
}
- while (arg) {
+ while (arg && *arg) {
current++;
switch (*arg) {