tbug fix - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c291b2ec819db0e168bbd1f667e313e3588c49be
(DIR) parent bcb7f64ea55480585b546b462a3a2891765c400b
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 20 Apr 2006 21:51:05 +0000
bug fix
Diffstat:
M src/cmd/lex/lmain.c | 3 ++-
M src/cmd/lex/sub2.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/lex/lmain.c b/src/cmd/lex/lmain.c
t@@ -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 */
}
(DIR) diff --git a/src/cmd/lex/sub2.c b/src/cmd/lex/sub2.c
t@@ -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]);