Skip to content

Commit e3ae196

Browse files
author
Andi Gutmans
committed
- Don't need to check doc_root's length twice
1 parent f8ecf34 commit e3ae196

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

main/fopen_wrappers.c

-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ PHPAPI FILE *php_fopen_primary_script(void)
333333
#else
334334
if (IS_SLASH(*PG(doc_root))) {
335335
#endif
336-
length = strlen(PG(doc_root));
337336
filename = emalloc(length + strlen(path_info) + 2);
338337
if (filename) {
339338
memcpy(filename, PG(doc_root), length);

0 commit comments

Comments
 (0)