From: Stephen D. <sd...@us...> - 2005-06-11 20:00:57
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6586/nsd Modified Files: urlspace.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: urlspace.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/urlspace.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** urlspace.c 10 Jun 2005 17:58:41 -0000 1.3 --- urlspace.c 11 Jun 2005 20:00:48 -0000 1.4 *************** *** 2160,2168 **** break; default: ! Ns_DStringVarAppend(dsPtr, "/", stack[depth], 0); break; } } ! Ns_DStringVarAppend(dsPtr, filter, " ", 0); if (nodePtr->dataInherit != NULL) { func(dsPtr, nodePtr->dataInherit); --- 2160,2168 ---- break; default: ! Ns_DStringVarAppend(dsPtr, "/", stack[depth], NULL); break; } } ! Ns_DStringVarAppend(dsPtr, filter, " ", NULL); if (nodePtr->dataInherit != NULL) { func(dsPtr, nodePtr->dataInherit); |