From 758405a78f090717df9af4a1228975ae3966963d Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 3 Aug 2007 02:19:32 +0000 Subject: [PATCH] arg ... left out one minor fix git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1069 9efc2488-bf62-4759-914b-345cdb29e865 --- src/gateway/osrf_json_gateway.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0