summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-19 16:55:13 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-19 16:55:13 +0000
commit8e852c55ed530007343e293bf5c8fdb9fd53e322 (patch)
tree0631c82d4449eb8215f0328b2d47bc61384bcd90 /src/common
parent76060b9b386d8834ff796a8df2eaa0bb0a497fff (diff)
downloadhercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.gz
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.bz2
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.xz
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.zip
* Forgotten update to the definition of script command 'input'.
* Enabled DEBUG_MEMMGR only in DEBUG mode. * Made autotrading characters be kicked instead of reporting double login. * Made create_session initialize session_data to NULL. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12218 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/malloc.c2
-rw-r--r--src/common/socket.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c
index 90efd04ee..93d03107b 100644
--- a/src/common/malloc.c
+++ b/src/common/malloc.c
@@ -112,7 +112,9 @@ char* _bstrdup(const char *chr)
#ifdef USE_MEMMGR
+#if defined(DEBUG)
#define DEBUG_MEMMGR
+#endif
/* USE_MEMMGR */
diff --git a/src/common/socket.c b/src/common/socket.c
index 2dd860715..995aabedb 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -528,6 +528,7 @@ static int create_session(int fd, RecvFunc func_recv, SendFunc func_send, ParseF
session[fd]->func_send = func_send;
session[fd]->func_parse = func_parse;
session[fd]->rdata_tick = last_tick;
+ session[fd]->session_data = NULL;
return 0;
}