Safety memset when creating error information for a new thread.

This commit is contained in:
Ryan C. Gordon 2001-08-01 10:18:56 +00:00
parent 54e9fbfea5
commit 3be0550a6c
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ void __PHYSFS_setError(const char *str)
if (err == NULL)
return; /* uhh...? */
memset((void *) err, '\0', sizeof (ErrMsg));
err->tid = __PHYSFS_platformGetThreadID();
err->next = errorMessages;
errorMessages = err;