- patch provided by Scott McKellar
- http://list.georgialibraries.org/pipermail/open-ils-dev/2007-April/000727.html
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@866
9efc2488-bf62-4759-914b-
345cdb29e865
jsonObject* osrf_settings_host_value_object(char* format, ...) {
VA_LIST_TO_STRING(format);
+
+ if( ! config ) {
+ const char * msg = "config pointer is NULL";
+ fprintf( stderr, "osrf_settings_host_value_object: %s\n", msg );
+ osrfLogError( OSRF_LOG_MARK, msg );
+ exit( 99 );
+ }
+
return jsonObjectFindPath(config->config, VA_BUF);
}