aboutsummaryrefslogtreecommitdiffstats
path: root/common/logging.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-06-07 13:33:02 +0000
committerWerner Koch <[email protected]>2010-06-07 13:33:02 +0000
commitbbe388b5db35be6ffece8ebd42f11372af016763 (patch)
tree73e1fe9697b969be66bd89953125010e5721efe1 /common/logging.c
parentPrint --version etc via estream (diff)
downloadgnupg-bbe388b5db35be6ffece8ebd42f11372af016763.tar.gz
gnupg-bbe388b5db35be6ffece8ebd42f11372af016763.zip
Add unfinished gpgtar.
Collected changes and ports of bug fixes from stable.
Diffstat (limited to '')
-rw-r--r--common/logging.c6
1 files changed, 5 insertions, 1 deletions
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;
}