diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-18 16:03:55 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-18 16:03:55 +0800 |
commit | 87755ead67ec0872404d236e3d4df5c38f5be2f7 (patch) | |
tree | 68b32dc3c6bd6472f9225a6b5f146ab023611fe9 /mbbsd/mbbsd.c | |
parent | a1cae408724ce87a11f530b5cd5adaae22959893 (diff) | |
download | pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar.gz pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar.bz2 pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar.lz pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar.xz pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.tar.zst pttbbs-87755ead67ec0872404d236e3d4df5c38f5be2f7.zip |
discard 2521 due to some unknown memory problems.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 2f85f7f2..227e0f01 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -323,14 +323,6 @@ add_history(const msgque_t * msg) { int i = 0, j, waterinit = 0; water_t *tmp; -#ifdef CRITICAL_MEMORY - if( !water ){ - water = (water_t*)malloc(sizeof(water_t) * 6); - memset(water, 0, sizeof(water_t) * 6); - water_which = &water[0]; - strlcpy(water[0].userid, " ¥þ³¡ ", sizeof(water[0].userid)); - } -#endif if (WATERMODE(WATER_ORIG) || WATERMODE(WATER_NEW)) add_history_water(&water[0], msg); if (WATERMODE(WATER_NEW) || WATERMODE(WATER_OFO)) { @@ -957,10 +949,8 @@ user_login(void) resolve_fcache(); /* resolve_boards(); */ numboards = SHM->Bnumber; -#ifndef CRITICAL_MEMORY memset(&water[0], 0, sizeof(water_t) * 6); strlcpy(water[0].userid, " ¥þ³¡ ", sizeof(water[0].userid)); -#endif if(getenv("SSH_CLIENT") != NULL){ char frombuf[50]; |