summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-01-23 19:43:56 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-01-23 19:43:56 +0000
commit0dc104f20dcfa3dbdf301949a4c01d2f38c02687 (patch)
tree588296fc3c84d9cb01f61eabe5910dd04e4539d7 /src/modules/hs_request.c
parentd86dddd6e723c223de8b0341a083d520f7a92c18 (diff)
BUILD : 1.7.13 (956) BUGS : NOTES : applied patch provided by trystan
git-svn-id: svn://svn.anope.org/anope/trunk@956 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@683 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index aff1ad5b8..9e4930c0c 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -81,6 +81,7 @@ void my_load_config(void);
void my_add_languages(void);
HostCore *hs_request_head;
+char *hs_request_tmp;
int AnopeInit(int argc, char **argv)
{
@@ -682,7 +683,6 @@ 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, &tmp}}}}
+ {{"HSRequestDBName", {{PARAM_STRING, PARAM_RELOAD, &hs_request_tmp}}}}
};
for (i = 0; i < 4; i++)
moduleGetConfigDirective(confvalues[i]);
- if (tmp) {
+ if (hs_request_tmp) {
if (HSRequestDBName)
free(HSRequestDBName);
- HSRequestDBName = sstrdup(tmp);
+ HSRequestDBName = sstrdup(hs_request_tmp);
} else {
HSRequestDBName = sstrdup(HSREQ_DEFAULT_DBNAME);
}