aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/yacc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/yacc.c')
-rw-r--r--src/cmd/yacc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c
index c080e012..32990f62 100644
--- a/src/cmd/yacc.c
+++ b/src/cmd/yacc.c
@@ -2130,11 +2130,12 @@ swt:
c = Bgetrune(finput);
if(c == '\n')
lineno++;
- } else
+ } else {
if(c == match)
goto lcopy;
if(c == '\n')
error("newline in string or char. const.");
+ }
Bputrune(faction, c);
}
error("EOF in string or character constant");