Skip to content

Commit

Permalink
FIX: Valgrind's warning: Use of uninitialised value
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 7, 2020
1 parent fc33d1c commit b2fb600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/t-word.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
if (!sym) Trap1(RE_BAD_CHAR, arg);
}
else if (IS_CHAR(arg)) {
REBYTE buf[8];
REBYTE buf[8] = {0};
sym = Encode_UTF8_Char(&buf[0], VAL_CHAR(arg)); //returns length
sym = Scan_Word(&buf[0], sym);
if (!sym) Trap1(RE_BAD_CHAR, arg);
Expand Down

0 comments on commit b2fb600

Please sign in to comment.