summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/php_open_temporary_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index ffc291570a..7499f08e65 100644
--- a/main/php_open_temporary_file.c
+++ b/main/php_open_temporary_file.c
@@ -104,7 +104,7 @@ static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **open
return NULL;
}
- if (*path+strlen(path)-1 == '/') {
+ if (path[strlen(path)-1] == '/') {
trailing_slash = "";
} else {
trailing_slash = "/";