From 9dca18dfee0c596c231b762c945a14baa8d8da94 Mon Sep 17 00:00:00 2001
From: Kaz Kylheku <kaz@kylheku.com>
Date: Wed, 4 Nov 2009 11:59:57 -0800
Subject: Kill tabs with spaces (how did they sneak in?). Fix possible use of
 uninitialized ch.

---
 parser.l | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

(limited to 'parser.l')

diff --git a/parser.l b/parser.l
index 7a5f0c17..d35c23ad 100644
--- a/parser.l
+++ b/parser.l
@@ -41,18 +41,18 @@
 
 #define YY_NO_UNPUT
 
-#define YY_INPUT(buf, result, max_size)						\
-	do {																						\
-		obj_t *c = nil;																\
-		int n, ch;																		\
-		for (n = 0; n < max_size && 									\
-								(c = get_char(yyin_stream)) && 		\
-								(ch = c_chr(c)) != '\n'; ++n)		  \
-			buf[n] = (char) ch;													\
-		if (ch == '\n')														  	\
-			buf[n++] = (char) ch;                       \
-		result = n;                                   \
-	} while (0)
+#define YY_INPUT(buf, result, max_size)           \
+  do {                                            \
+    obj_t *c = nil;                               \
+    int n, ch = '*';                              \
+    for (n = 0; n < max_size &&                   \
+                (c = get_char(yyin_stream)) &&    \
+                (ch = c_chr(c)) != '\n'; ++n)     \
+      buf[n] = (char) ch;                         \
+    if (ch == '\n')                               \
+      buf[n++] = (char) ch;                       \
+    result = n;                                   \
+  } while (0)
 
 obj_t *yyin_stream;
 
-- 
cgit v1.2.3