mirror of
https://github.com/anope/anope.git
synced 2026-07-07 10:03:13 +02:00
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
This commit is contained in:
parent
d86dddd6e7
commit
0dc104f20d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user