Skip to content

Commit

Permalink
Safety memset when creating error information for a new thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 1, 2001
1 parent 54e9fbf commit 3be0550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions physfs.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3be0550

Please sign in to comment.