]> skyeroc.xyz Git - dgamelaunch/commitdiff
zero 'me' after allocating it
authorJoshua Kwan <joshk@triplehelix.org>
Tue, 17 Feb 2004 01:00:22 +0000 (01:00 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Tue, 17 Feb 2004 01:00:22 +0000 (01:00 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@241 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index d47529ee6e961c38b6e2a8443ec17d05240c2319..49698e9bc31e8931466c3e2100884fc403f70da6 100644 (file)
@@ -947,7 +947,7 @@ newuser ()
   if (me)
     free (me);
 
-  me = malloc (sizeof (struct dg_user));
+  me = calloc (1, sizeof (struct dg_user));
 
   while (error)
     {