1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

A merged changes

This commit is contained in:
Werner Koch 2010-11-08 09:18:47 +00:00
parent b4da5a4150
commit cb68b5d923
2 changed files with 6 additions and 1 deletions

View file

@ -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. */