Skip to content

Commit 3a72677

Browse files
committed
- Fix compiler warning
1 parent b0f7344 commit 3a72677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpdbg_prompt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
9393
while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) {
9494
cmd_len = strlen(cmd)-1;
9595

96-
while (cmd && cmd_len > 0L && isspace(cmd[cmd_len-1]))
96+
while (cmd_len > 0L && isspace(cmd[cmd_len-1]))
9797
cmd_len--;
9898

9999
cmd[cmd_len] = '\0';

0 commit comments

Comments
 (0)