summaryrefslogtreecommitdiff
path: root/src/w32-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32-util.c')
-rw-r--r--src/w32-util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32-util.c b/src/w32-util.c
index ad36c9a..5b02c7e 100644
--- a/src/w32-util.c
+++ b/src/w32-util.c
@@ -577,9 +577,10 @@ _gpgme_get_gpgconf_path (void)
"Install Directory");
if (tmp)
{
- if (gpgrt_asprintf (&dir, "%s\\bin", tmp) == -1)
- return NULL;
+ dir = _gpgme_strconcat (tmp, "\\bin", NULL);
free (tmp);
+ if (!dir)
+ return NULL;
}
}
if (dir)