Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2018-03-14 15:08:36 +1000
committerAllan McRae <allan@archlinux.org>2018-03-14 15:08:36 +1000
commit3e619ccffe585ddf19b1faa053ff46654d2b8a48 (patch)
treebf5b59a0d0289de6ac731aafd93cdcc9abe6b9a6 /src
parent1b288bae1f1dfae1e8c6d7c4f592117dff6eab57 (diff)
make_aligned_titles: initialise wbuf
This prevents a valgrind warning from deep inside wcstombs. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 99d1495f..be5456aa 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -92,7 +92,7 @@ static void make_aligned_titles(void)
size_t maxlen = 0;
int maxcol = 0;
static const wchar_t title_suffix[] = L" :";
- wchar_t wbuf[ARRAYSIZE(titles)][TITLE_MAXLEN + ARRAYSIZE(title_suffix)];
+ wchar_t wbuf[ARRAYSIZE(titles)][TITLE_MAXLEN + ARRAYSIZE(title_suffix)] = {{ 0 }};
size_t wlen[ARRAYSIZE(wbuf)];
int wcol[ARRAYSIZE(wbuf)];
char *buf[ARRAYSIZE(wbuf)];