From e38158dfce4969609ab4957446d1d9a631abbfb5 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> Date: Mon, 24 Jan 2005 16:55:10 +0000 Subject: More G++ work git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@976 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/login') 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; -- cgit v1.2.3-70-g09d2