Skip to content
Permalink
Browse files
Safety memset when creating error information for a new thread.
  • Loading branch information
icculus committed Aug 1, 2001
1 parent 54e9fbf commit 3be0550a6c35503a3ec3a83663a62b6edd921755
Showing with 1 addition and 0 deletions.
  1. +1 −0 physfs.c
@@ -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;

0 comments on commit 3be0550

Please sign in to comment.