From bbe388b5db35be6ffece8ebd42f11372af016763 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 7 Jun 2010 13:33:02 +0000 Subject: Add unfinished gpgtar. Collected changes and ports of bug fixes from stable. --- common/logging.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/logging.c') diff --git a/common/logging.c b/common/logging.c index f014d9fca..f9ac69202 100644 --- a/common/logging.c +++ b/common/logging.c @@ -402,7 +402,11 @@ log_get_fd () estream_t log_get_stream () { - assert (logstream); + if (!logstream) + { + log_set_file (NULL); /* Make sure a log stream has been set. */ + assert (logstream); + } return logstream; } -- cgit v1.2.3