]> granicus.if.org Git - php/commitdiff
- Don't need to check doc_root's length twice
authorAndi Gutmans <andi@php.net>
Fri, 16 Jun 2000 01:25:02 +0000 (01:25 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 16 Jun 2000 01:25:02 +0000 (01:25 +0000)
main/fopen_wrappers.c

index 7bcc9086fb972cc7d7b3a8407e9ab875a14ad87c..4e51ec0b1935e00e887ac0a1b118792c70cdf8a2 100644 (file)
@@ -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);