2
0
Fork 0

reduce amount of preallocated memory in vr->physical struct

This commit is contained in:
Thomas Porzelt 2009-03-28 02:19:38 +01:00
parent 542031e8a3
commit 97db5dab4e
1 changed files with 5 additions and 5 deletions

View File

@ -237,11 +237,11 @@ gboolean request_validate_header(connection *con) {
}
void physical_init(physical *phys) {
phys->path = g_string_sized_new(512);
phys->basedir = g_string_sized_new(256);
phys->doc_root = g_string_sized_new(256);
phys->rel_path = g_string_sized_new(256);
phys->pathinfo = g_string_sized_new(256);
phys->path = g_string_sized_new(127);
phys->basedir = g_string_sized_new(63);
phys->doc_root = g_string_sized_new(63);
phys->rel_path = g_string_sized_new(63);
phys->pathinfo = g_string_sized_new(63);
phys->have_stat = FALSE;
phys->have_errno = FALSE;
}