MSan: Initialize buffer in spell_delete_wordlist.

This commit is contained in:
Justin M. Keyes 2015-06-09 02:20:34 -04:00 committed by Florian Walch
parent 03062b8db0
commit 8eb3470147

View File

@ -4116,7 +4116,7 @@ static int badword_captype(char_u *word, char_u *end)
// Delete the internal wordlist and its .spl file. // Delete the internal wordlist and its .spl file.
void spell_delete_wordlist(void) void spell_delete_wordlist(void)
{ {
char_u fname[MAXPATHL]; char_u fname[MAXPATHL] = {0};
if (int_wordlist != NULL) { if (int_wordlist != NULL) {
os_remove((char *)int_wordlist); os_remove((char *)int_wordlist);