summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/fopen_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index 4e51ec0b19..2f96b16da5 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -329,7 +329,7 @@ PHPAPI FILE *php_fopen_primary_script(void)
length = strlen(PG(doc_root));
#ifdef PHP_WIN32
/* Check for absolute path. This should really use virtual cwd macros */
- if (IS_SLASH(*PG(doc_root) || (length >= 3 && PG(doc_root)[1] == ':' && IS_SLASH(PG(doc_root)[2]))) {
+ if (IS_SLASH(*PG(doc_root)) || (length >= 3 && PG(doc_root)[1] == ':' && IS_SLASH(PG(doc_root)[2]))) {
#else
if (IS_SLASH(*PG(doc_root))) {
#endif