diff --git a/common/mkdir_p.c b/common/mkdir_p.c index 2e93d6592..37b44ec14 100644 --- a/common/mkdir_p.c +++ b/common/mkdir_p.c @@ -60,7 +60,7 @@ gnupg_amkdir_p (const char **directory_components) for (i = 0; directory_components[i]; i ++) { if (i == 0) - dirs[i] = xtrystrdup (directory_components[i]); + dirs[i] = make_filename_try (directory_components[i], NULL); else dirs[i] = make_filename_try (dirs[i-1], directory_components[i], NULL); if (!dirs[i])