Safety memset when creating error information for a new thread.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 01 Aug 2001 10:18:56 +0000
changeset 57 1ec888db3df9
parent 56 6a04b6c1db0e
child 58 3b48a08a4892
Safety memset when creating error information for a new thread.
physfs.c
--- a/physfs.c	Sat Jul 28 13:39:55 2001 +0000
+++ b/physfs.c	Wed Aug 01 10:18:56 2001 +0000
@@ -138,6 +138,7 @@
         if (err == NULL)
             return;   /* uhh...? */
 
+        memset((void *) err, '\0', sizeof (ErrMsg));
         err->tid = __PHYSFS_platformGetThreadID();
         err->next = errorMessages;
         errorMessages = err;