From cb68b5d923e89014df3f96aacec1d894da5b887f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 8 Nov 2010 09:18:47 +0000 Subject: A merged changes --- common/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/logging.c') diff --git a/common/logging.c b/common/logging.c index 6b9fa5e23..37b890d03 100644 --- a/common/logging.c +++ b/common/logging.c @@ -577,7 +577,7 @@ do_logv (int level, int ignore_arg_ptr, const char *fmt, va_list arg_ptr) tmp = read_w32_registry_string (NULL, "Software\\GNU\\GnuPG", "DefaultLogFile"); - log_set_file (tmp); + log_set_file (tmp && *tmp? tmp : NULL); jnlib_free (tmp); #else log_set_file (NULL); /* Make sure a log stream has been set. */ -- cgit v1.2.3