index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2019-12-24 10:28:11 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-01-07 11:40:32 +1000 |
commit | 9883015be2b2010ad541fd02b6856bfdb28fb35d (patch) | |
tree | cea21e7bc4eab89a47356f60c4b924ae3043bb42 /lib/libalpm/util.c | |
parent | ffb69c700abd6eb3b86e79e09b135029ff9104b4 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 2 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index a4d62c7c..d12a4403 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -1191,7 +1191,7 @@ cleanup: { int ret = b->ret; FREE(b->line); - memset(b, 0, sizeof(struct archive_read_buffer)); + *b = (struct archive_read_buffer){0}; return ret; } } |