com php-src: fix condition: sapi/phpdbg/phpdbg_prompt.c
| From: | Anatol Belski | Date: | Mon, 30 May 2016 16:35:14 +0000 |
| Subject: | com php-src: fix condition: sapi/phpdbg/phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92244@lists.php.net to get a copy of this message | ||
Commit: 2524ab9e67554f1de3c343ed7eb11eee0c92a093
Author: Anatol Belski <ab@php.net> Mon, 30 May 2016 18:32:39 +0200
Parents: c10169097206a4f58d2c8d3a28b0615df96bf82c
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2524ab9e67554f1de3c343ed7eb11eee0c92a093
Log:
fix condition
Changed paths:
M sapi/phpdbg/phpdbg_prompt.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index a01c8a3..6f73d30 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -1048,7 +1048,7 @@ PHPDBG_API const char *phpdbg_load_module_or_extension(char **path, char
**name)
if (!handle) {
#if PHP_WIN32
char *err = GET_DL_ERROR();
- if (err && *err != "") {
+ if (err && err[0]) {
phpdbg_error("dl", "type=\"unknown\"", "%s", err);
LocalFree(err);
} else {