diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 18:55:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 18:55:42 +0000 |
commit | ab718378cb58280b3790ae18895cc0359f36d357 (patch) | |
tree | 49c8cb894166648a0cffd76adf0ab05560570c35 /log.c | |
parent | 5ef6d077c67b80fdb5e2153172f6d1ec1302050f (diff) |
Don't close stderr in log_close to make -v/-vv work again.
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: log.c,v 1.2 2007-07-25 23:13:18 nicm Exp $ */ +/* $Id: log.c,v 1.3 2007-09-26 18:55:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -56,7 +56,7 @@ log_open(FILE *f, int facility, int level) void log_close(void) { - if (log_stream != NULL) + if (log_stream != NULL && log_stream != stderr) /* XXX */ fclose(log_stream); log_enabled = 0; |