Fix some warnings under windows

dir is supposed to be malloced and not a static string.
parent 6e0bdcd1
......@@ -234,7 +234,7 @@ standard_homedir(void)
CreateDirectoryA(dir, NULL);
}
} else {
dir = "C:\\gnupg";
dir = strdup("C:\\gnupg");
}
}
return dir;
......@@ -272,7 +272,7 @@ default_homedir(void)
dir = saved_dir;
}
if (!dir || !*dir) {
dir = "C:\\gnupg";
dir = strdup("C:\\gnupg");
}
return dir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment