com php-src: - Fix compiler warning: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Sat, 23 Nov 2013 15:35:30 +0000 |
| Subject: | com php-src: - Fix compiler warning: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74701@lists.php.net to get a copy of this message | ||
Commit: 3a72677e83b6f2441df616f235bac34d7aa76573
Author: Felipe Pena <felipensp@gmail.com> Sat, 23 Nov 2013 13:35:30 -0200
Parents: b0f7344919d46c3517d48c9fe7518e5a68339a1a
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3a72677e83b6f2441df616f235bac34d7aa76573
Log:
- Fix compiler warning
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 5db0122..1cac919 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -93,7 +93,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) {
cmd_len = strlen(cmd)-1;
- while (cmd && cmd_len > 0L && isspace(cmd[cmd_len-1]))
+ while (cmd_len > 0L && isspace(cmd[cmd_len-1]))
cmd_len--;
cmd[cmd_len] = '\0';