diff options
author | Werner Koch <[email protected]> | 2010-06-07 13:33:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-06-07 13:33:02 +0000 |
commit | bbe388b5db35be6ffece8ebd42f11372af016763 (patch) | |
tree | 73e1fe9697b969be66bd89953125010e5721efe1 /common/logging.c | |
parent | Print --version etc via estream (diff) | |
download | gnupg-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.c | 6 |
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; } |