aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/lex.zc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/lex.zc')
-rw-r--r--src/compiler/lex.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/lex.zc b/src/compiler/lex.zc
index 95415a6..3b810ba 100644
--- a/src/compiler/lex.zc
+++ b/src/compiler/lex.zc
@@ -377,7 +377,7 @@ int fieldscan(int n) {
// before a program it joins to the runtime. the rest of the line is read here and the marker kept: the
// source is read once to find the signatures and again to compile, and it counts only when compiling reaches it.
int mark_line() {
- char[300] b; int n = 0, i, base; word name;
+ char[300] b = {}; int n = 0, i, base; word name;
while (ch >= 0 && ch != 10) { if (n < 298) { b[n] = ch; n++; } nextch(); }
while (n && (b[n - 1] == 13 || b[n - 1] == 32)) n--;
b[n] = 0;