diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-19 10:28:02 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-19 10:28:02 +0000 |
commit | fe0992a6aba0a7a95b666ecb52df8ce1a6d5a723 (patch) | |
tree | 5d45b54d05662b624b86a12bf94bd586bf77e68a /src/mysql.c | |
parent | aa896a87ac4705a5a8a26cbf5ddae2db3fc54c62 (diff) |
BUILD : 1.7.5 (351) BUGS : N/A NOTES : Rewrote the internals of moduleData, this will save _lots_ of memory especially on larger networks. The downside is modules using it need to make a tiny, tiny change... :/
git-svn-id: svn://svn.anope.org/anope/trunk@351 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@227 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mysql.c')
-rw-r--r-- | src/mysql.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mysql.c b/src/mysql.c index 896eb9216..d0771faa0 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -1331,9 +1331,7 @@ void db_mysql_load_cs_dbase(void) memos->time = atoi(row[2]); snprintf(memos->sender, NICKMAX, "%s", row[3]); memos->text = sstrdup(row[4]); - for (m = 0; m < MAX_CMD_HASH; m++) { - memos->moduleData[m] = NULL; - } + memos->moduleData = NULL; memos++; } } @@ -1545,9 +1543,7 @@ void db_mysql_load_ns_dbase(void) memos->time = atoi(row[2]); snprintf(memos->sender, NICKMAX, "%s", row[3]); memos->text = sstrdup(row[4]); - for (m = 0; m < MAX_CMD_HASH; m++) { - memos->moduleData[m] = NULL; - } + memos->moduleData = NULL; memos++; } mysql_free_result(res); |