Skip to content

Commit b2fb600

Browse files
committed
FIX: Valgrind's warning: Use of uninitialised value
related to: Oldes/Rebol-issues#1840
1 parent fc33d1c commit b2fb600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-word.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
if (!sym) Trap1(RE_BAD_CHAR, arg);
109109
}
110110
else if (IS_CHAR(arg)) {
111-
REBYTE buf[8];
111+
REBYTE buf[8] = {0};
112112
sym = Encode_UTF8_Char(&buf[0], VAL_CHAR(arg)); //returns length
113113
sym = Scan_Word(&buf[0], sym);
114114
if (!sym) Trap1(RE_BAD_CHAR, arg);

0 commit comments

Comments
 (0)