diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-05 19:04:36 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-05 19:04:36 +0000 |
commit | 3dae15d46ceba9f5e78939abeb69998a9656657e (patch) | |
tree | 2fe0c78a3d56641f0a9d4cfa2f233d3f3774d2bd /src | |
parent | 0ea9dd7904d0a33f986b5bad998298bda4087d32 (diff) |
BUILD : 1.7.14 (1110) BUGS : 523 NOTES : os_info.c now calls mSaveData on AnopeFini
git-svn-id: svn://svn.anope.org/anope/trunk@1110 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@834 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/os_info.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c index bbb308535..e1af20d8c 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -116,6 +116,12 @@ int AnopeInit(int argc, char **argv) **/ void AnopeFini(void) { + char *av[1]; + + av[0] = sstrdup(EVENT_START); + mSaveData(1, av); + free(av[0]); + if (OSInfoDBName) free(OSInfoDBName); } @@ -403,7 +409,7 @@ int mSaveData(int argc, char **argv) int i = 0; int ret = 0; FILE *out; - char *info = NULL; + char *info = NULL; if (argc >= 1) { if (!stricmp(argv[0], EVENT_START)) { |