physfs.c
changeset 57 1ec888db3df9
parent 51 42f4befc1d0b
child 66 63c02eb30b04
equal deleted inserted replaced
56:6a04b6c1db0e 57:1ec888db3df9
   136     {
   136     {
   137         err = (ErrMsg *) malloc(sizeof (ErrMsg));
   137         err = (ErrMsg *) malloc(sizeof (ErrMsg));
   138         if (err == NULL)
   138         if (err == NULL)
   139             return;   /* uhh...? */
   139             return;   /* uhh...? */
   140 
   140 
       
   141         memset((void *) err, '\0', sizeof (ErrMsg));
   141         err->tid = __PHYSFS_platformGetThreadID();
   142         err->tid = __PHYSFS_platformGetThreadID();
   142         err->next = errorMessages;
   143         err->next = errorMessages;
   143         errorMessages = err;
   144         errorMessages = err;
   144     } /* if */
   145     } /* if */
   145 
   146