diff options
| author | certus 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 |
|---|---|---|
| committer | certus 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 |
| commit | 0dc104f20dcfa3dbdf301949a4c01d2f38c02687 (patch) | |
| tree | 588296fc3c84d9cb01f61eabe5910dd04e4539d7 /src/modules/os_info.c | |
| parent | d86dddd6e723c223de8b0341a083d520f7a92c18 (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/os_info.c')
| -rw-r--r-- | src/modules/os_info.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c index bbb308535..6b30c166e 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -58,6 +58,8 @@ int mSaveData(int argc, char **argv); int mLoadConfig(); int mEventReload(int argc, char **argv); +char *os_info_tmp; + /*************************************************************************/ /** @@ -449,10 +451,9 @@ int mSaveData(int argc, char **argv) **/ int mLoadConfig(void) { - char *tmp = NULL; Directive directivas[] = { - {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &tmp}}}, + {"OSInfoDBName", {{PARAM_STRING, PARAM_RELOAD, &os_info_tmp}}}, }; Directive *d = &directivas[0]; @@ -461,8 +462,8 @@ int mLoadConfig(void) if (OSInfoDBName) free(OSInfoDBName); - if (tmp) { - OSInfoDBName = tmp; + if (os_info_tmp) { + OSInfoDBName = sstrdup(os_info_tmp); } else { OSInfoDBName = sstrdup(DEFAULT_DB_NAME); alog("os_info: OSInfoDBName is not defined in Services configuration file, using default %s", OSInfoDBName); |
