From: miker Date: Fri, 3 Aug 2007 02:19:32 +0000 (+0000) Subject: arg ... left out one minor fix X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=758405a78f090717df9af4a1228975ae3966963d;p=working%2FOpenSRF.git arg ... left out one minor fix git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1069 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/gateway/osrf_json_gateway.c b/src/gateway/osrf_json_gateway.c index 280ad3e..0349473 100644 --- a/src/gateway/osrf_json_gateway.c +++ b/src/gateway/osrf_json_gateway.c @@ -40,7 +40,8 @@ int numserved = 0; osrfStringArray* allowedServices = NULL; static const char* osrf_json_gateway_set_default_locale(cmd_parms *parms, void *config, const char *arg) { - osrf_json_default_locale = (char*) arg; + if (arg) + osrf_json_default_locale = (char*) arg; return NULL; } @@ -418,7 +419,6 @@ static int osrf_json_gateway_method_handler (request_rec *r) { } osrfLogInfo(OSRF_LOG_MARK, "Completed processing service=%s, method=%s", service, method); - free(osrf_locale); string_array_destroy(params); string_array_destroy(mparams);