src/nhttpd: fix segfault if logging on

Origin commit data
------------------
Commit: fe16513b4f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-12-07 (Fri, 07 Dec 2012)
This commit is contained in:
Jacek Jendrzej
2012-12-07 11:13:51 +01:00
parent 876d755e9c
commit 6da9a9daca
3 changed files with 7 additions and 3 deletions

View File

@@ -330,8 +330,7 @@ std::string CyParser::cgi_cmd_parsing(CyhookHandler *hh,
if (ydebug)
hh->printf("[ycgi debug]: CMD:[%s]<br/>\n", ycmd.c_str());
yresult = YWeb_cgi_cmd(hh, ycmd); // 4. execute cmd
// log_level_printf(5, "<yLoop>: ycmd...:%s\n", ycmd.c_str());//FIXME <tr class="%ctimer"> <td>%s</td> <td>%s</td> ... segfault
log_level_printf(5, "<yLoop>: ycmd...:%s\n", ycmd.c_str());
log_level_printf(6, "<yLoop>: yresult:%s\n", yresult.c_str());
if (ydebug)
hh->printf("[ycgi debug]: RESULT:[%s]<br/>\n",