diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-24 16:55:10 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-24 16:55:10 +0000 |
commit | e38158dfce4969609ab4957446d1d9a631abbfb5 (patch) | |
tree | 0b223240cd1fefb86026a273029a0f176f3d2da4 /src/login/login.c | |
parent | 817a048b554ed05fda836a9b55e0dc9a816334b7 (diff) | |
download | hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.gz hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.bz2 hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.tar.xz hercules-e38158dfce4969609ab4957446d1d9a631abbfb5.zip |
More G++ work
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@976 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login/login.c')
-rw-r--r-- | src/login/login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c index 5736963d3..4e1870163 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -2994,7 +2994,8 @@ int parse_login(int fd) { session[fd]->eof = 1; return 0; } - ld = (struct login_session_data*)session[fd]->session_data = (struct login_session_data*)aCalloc(1, sizeof(struct login_session_data)); + ld = (struct login_session_data*)aCalloc(1, sizeof(struct login_session_data)); + session[fd]->session_data = ld; if (!ld) { printf("login: Request for md5 key: memory allocation failure (malloc)!\n"); session[fd]->eof = 1; |