Changeset 541 for trunk/src/sh_dbIO.c
- Timestamp:
- Jan 16, 2019, 11:57:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_dbIO.c
r538 r541 460 460 if (1 == 0) 461 461 hexdump((unsigned char *)&old_struct, sizeof(old_struct)); 462 memset(&try_struct, '\0', sizeof(try_struct));462 memset(&try_struct, 0, sizeof(try_struct)); 463 463 if (!memcmp(&old_struct, &try_struct, sizeof(try_struct))) 464 464 return 0; /* NULL read */ … … 1437 1437 1438 1438 if (!buf) { 1439 memset(&p, '\0', sizeof(sh_filestore_t));1439 memset(&p, 0, sizeof(sh_filestore_t)); 1440 1440 } 1441 1441
Note:
See TracChangeset
for help on using the changeset viewer.