aboutsummaryrefslogtreecommitdiffstats
path: root/common/homedir.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/homedir.c')
-rw-r--r--common/homedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/homedir.c b/common/homedir.c
index 3105aec06..b85f760a0 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -143,7 +143,7 @@ default_homedir (void)
tmp = read_w32_registry_string (NULL, "Software\\GNU\\GnuPG",
"HomeDir");
- if (tmp && *tmp)
+ if (tmp && !*tmp)
{
xfree (tmp);
tmp = NULL;