diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-01-24 07:54:48 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-01-24 07:54:48 +0000 |
commit | 4a54fdec5e6becedc49a90f2bee7e391e3bfe64c (patch) | |
tree | 9c68cf3e766f81d51f2ba43d2444df9ef6d7b2e0 /src/modules/os_info.c | |
parent | 0dc104f20dcfa3dbdf301949a4c01d2f38c02687 (diff) |
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
Diffstat (limited to 'src/modules/os_info.c')
-rw-r--r-- | src/modules/os_info.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c index 6b30c166e..bbb308535 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -58,8 +58,6 @@ int mSaveData(int argc, char **argv); int mLoadConfig(); int mEventReload(int argc, char **argv); -char *os_info_tmp; - /*************************************************************************/ /** @@ -451,9 +449,10 @@ int mSaveData(int argc, char **argv) **/ int mLoadConfig(void) { + char *tmp = NULL; Directive directivas[] = { - {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &os_info_tmp}}}, + {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}, }; Directive *d = &directivas[0]; @@ -462,8 +461,8 @@ int mLoadConfig(void) if (OSInfoDBName) free(OSInfoDBName); - if (os_info_tmp) { - OSInfoDBName = sstrdup(os_info_tmp); + if (tmp) { + OSInfoDBName = tmp; } else { OSInfoDBName = sstrdup(DEFAULT_DB_NAME); alog("os_info: OSInfoDBName is not defined in Services configuration file, using default %s", OSInfoDBName); |