fixed a segfault issue in httpd

This commit is contained in:
hyung-hwan 2013-02-22 10:59:40 +00:00
parent 9e2010f85c
commit 7984b065e1

View File

@ -851,7 +851,12 @@ static int load_server_config (
}
#endif
if (qse_mbstonwad (server_xtn->scfg[SCFG_ROOT], &server_xtn->root_nwad) >= 0) server_xtn->root_is_nwad = 1;
if (server_xtn->scfg[SCFG_ROOT] &&
qse_mbstonwad (server_xtn->scfg[SCFG_ROOT], &server_xtn->root_nwad) >= 0)
{
server_xtn->root_is_nwad = 1;
}
return 0;
}