summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-16 01:25:02 +0000
committerAndi Gutmans <andi@php.net>2000-06-16 01:25:02 +0000
commite3ae196da80914b95a959c36e30e82e2fcf3bfde (patch)
treea20d718416b631426b754595ce91599dda1f0363 /main
parentf8ecf34bf168b058337e5eac5c0c04fe911cffe8 (diff)
downloadphp-git-e3ae196da80914b95a959c36e30e82e2fcf3bfde.tar.gz
- Don't need to check doc_root's length twice
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index 7bcc9086fb..4e51ec0b19 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -333,7 +333,6 @@ PHPAPI FILE *php_fopen_primary_script(void)
#else
if (IS_SLASH(*PG(doc_root))) {
#endif
- length = strlen(PG(doc_root));
filename = emalloc(length + strlen(path_info) + 2);
if (filename) {
memcpy(filename, PG(doc_root), length);