1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -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:
Dan McGee 2011-12-05 23:20:08 -06:00
parent 17e0be9e6a
commit 6a1d3948a6

View File

@ -1000,7 +1000,7 @@ cleanup:
{
int ret = b->ret;
FREE(b->line);
memset(b, 0, sizeof(b));
memset(b, 0, sizeof(struct archive_read_buffer));
return ret;
}
}