From: Stephen D. <sd...@us...> - 2005-06-11 20:00:57
|
Update of /cvsroot/naviserver/naviserver/nslog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/nslog Modified Files: nslog.c Log Message: * include/nscheck: Add new attribute NS_GNUC_SENTINEL which ensures that a NULL is passed as the last arg to a varargs function. Also, make sure that the format arg in a printf-like function is non-NULL. * include/ns.h: Markup up with NS_GNUC_SENTINEL. * nsd/urlspace.c: * nsd/nslog.c: Say NULL rather than 0 when talking about null pointers. Index: nslog.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nslog/nslog.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** nslog.c 10 Jun 2005 20:53:13 -0000 1.7 --- nslog.c 11 Jun 2005 20:00:48 -0000 1.8 *************** *** 253,257 **** /* Parse extended headers, it is just Tcl list of names */ Ns_DStringTrunc(&ds,0); ! Ns_DStringVarAppend(&ds,Ns_ConfigGet(path,"extendedheaders"),0); if (Tcl_SplitList(NULL,ds.string,&opt,&logPtr->extheaders) != TCL_OK) { Ns_Log(Error,"nslog: invalid %s/extendedHeaders parameter: %s",path,ds.string); --- 253,257 ---- /* Parse extended headers, it is just Tcl list of names */ Ns_DStringTrunc(&ds,0); ! Ns_DStringVarAppend(&ds, Ns_ConfigGet(path, "extendedheaders"), NULL); if (Tcl_SplitList(NULL,ds.string,&opt,&logPtr->extheaders) != TCL_OK) { Ns_Log(Error,"nslog: invalid %s/extendedHeaders parameter: %s",path,ds.string); |