mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-28 08:04:47 +02:00
zero 'me' after allocating it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@241 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
f7f3ebcae7
commit
686c76bbea
@ -947,7 +947,7 @@ newuser ()
|
||||
if (me)
|
||||
free (me);
|
||||
|
||||
me = malloc (sizeof (struct dg_user));
|
||||
me = calloc (1, sizeof (struct dg_user));
|
||||
|
||||
while (error)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user