1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00

- Don't need to check doc_root's length twice

This commit is contained in:
Andi Gutmans
2000-06-16 01:25:02 +00:00
parent f8ecf34bf1
commit e3ae196da8

View 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);