mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
Use correct size in memset
We were using the size of a pointer, not the size of the whole archive_read_buffer struct. Thanks to Clang/LLVM 3.0 and Allan/Dave in IRC for finding this one. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
17e0be9e6a
commit
6a1d3948a6
@ -1000,7 +1000,7 @@ cleanup:
|
|||||||
{
|
{
|
||||||
int ret = b->ret;
|
int ret = b->ret;
|
||||||
FREE(b->line);
|
FREE(b->line);
|
||||||
memset(b, 0, sizeof(b));
|
memset(b, 0, sizeof(struct archive_read_buffer));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user