From 4a54fdec5e6becedc49a90f2bee7e391e3bfe64c Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 24 Jan 2006 07:54:48 +0000 Subject: git-svn-id: svn://svn.anope.org/anope/trunk@957 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@684 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/hs_request.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/hs_request.c') diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c index 9e4930c0c..aff1ad5b8 100644 --- a/src/modules/hs_request.c +++ b/src/modules/hs_request.c @@ -81,7 +81,6 @@ void my_load_config(void); void my_add_languages(void); HostCore *hs_request_head; -char *hs_request_tmp; int AnopeInit(int argc, char **argv) { @@ -683,6 +682,7 @@ int hsreqevt_db_saving(int argc, char **argv) void my_load_config(void) { int i; + char *tmp = NULL; Directive confvalues[][1] = { {{"HSRequestMemoUser", @@ -691,16 +691,16 @@ void my_load_config(void) {{PARAM_SET, PARAM_RELOAD, &HSRequestMemoOper}}}}, {{"HSRequestMemoSetters", {{PARAM_SET, PARAM_RELOAD, &HSRequestMemoSetters}}}}, - {{"HSRequestDBName", {{PARAM_STRING, PARAM_RELOAD, &hs_request_tmp}}}} + {{"HSRequestDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}} }; for (i = 0; i < 4; i++) moduleGetConfigDirective(confvalues[i]); - if (hs_request_tmp) { + if (tmp) { if (HSRequestDBName) free(HSRequestDBName); - HSRequestDBName = sstrdup(hs_request_tmp); + HSRequestDBName = sstrdup(tmp); } else { HSRequestDBName = sstrdup(HSREQ_DEFAULT_DBNAME); } -- cgit