aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/lex
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/lex')
-rw-r--r--src/cmd/lex/lmain.c3
-rw-r--r--src/cmd/lex/sub2.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/lex/lmain.c b/src/cmd/lex/lmain.c
index 0931d46a..7372d8ca 100644
--- a/src/cmd/lex/lmain.c
+++ b/src/cmd/lex/lmain.c
@@ -191,7 +191,8 @@ main(int argc, char **argv)
debug ||
# endif
report == 1)statistics();
- Bterm(fin);
+ if(fin)
+ Bterm(fin);
exits(0); /* success return code */
}
diff --git a/src/cmd/lex/sub2.c b/src/cmd/lex/sub2.c
index bcd3fee5..9221aea7 100644
--- a/src/cmd/lex/sub2.c
+++ b/src/cmd/lex/sub2.c
@@ -173,7 +173,7 @@ first(int v) /* calculate set of positions with v as root which can be active in
break;
case RSCON:
i = stnum/2 +1;
- p = (uchar *)right[v];
+ p = (uchar*)right[v];
while(*p)
if(*p++ == i){
first(left[v]);