From: Vlad S. <vl...@cr...> - 2009-02-05 16:55:44
|
On Linux it just should show null because underlying snprintf handles NULLs pretty well Vasiljevic Zoran wrote: > Hi! > > It seems that we have problems if Dev logging is enabled. > By definition the ConfigGet may return NULL. Also the value > of the section param passed to this (below) and other > similar functions may also be NULL. In such cases the > Ns_Log below crashes at dereferencing section and/or value > ptrs. > > > CONST char * > Ns_ConfigString(CONST char *section, CONST char *key, CONST char *def) > { > CONST char *value; > > value = ConfigGet(section, key, 0, def); > Ns_Log(Dev, "config: %s:%s value=\"%s\" default=\"%s\" (string)", > section, key, value, def); > > return value ? value : def; > } > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |