aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/lex/lmain.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 21:51:05 +0000
committerrsc <devnull@localhost>2006-04-20 21:51:05 +0000
commitc291b2ec819db0e168bbd1f667e313e3588c49be (patch)
tree0874e08de2e5342379a3241aaf0a001548baaa9e /src/cmd/lex/lmain.c
parentbcb7f64ea55480585b546b462a3a2891765c400b (diff)
downloadplan9port-c291b2ec819db0e168bbd1f667e313e3588c49be.tar.gz
plan9port-c291b2ec819db0e168bbd1f667e313e3588c49be.tar.bz2
plan9port-c291b2ec819db0e168bbd1f667e313e3588c49be.zip
bug fix
Diffstat (limited to 'src/cmd/lex/lmain.c')
-rw-r--r--src/cmd/lex/lmain.c3
1 files changed, 2 insertions, 1 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 */
}