Merge change I4e5c1c26
* changes: Fix use of memset function
This commit is contained in:
commit
d475db400b
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ read_central_dir(Zipfile *file)
|
|||
len = (buf+bufsize)-p;
|
||||
for (i=0; i < file->totalEntryCount; i++) {
|
||||
Zipentry* entry = malloc(sizeof(Zipentry));
|
||||
memset(entry, sizeof(Zipentry), 0);
|
||||
memset(entry, 0, sizeof(Zipentry));
|
||||
|
||||
err = read_central_directory_entry(file, entry, &p, &len);
|
||||
if (err != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue