mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Fixed a segfault on Windows.
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
char *ssh_get_user_home_dir(void) {
|
char *ssh_get_user_home_dir(void) {
|
||||||
char tmp[MAX_PATH] = {0};
|
char tmp[MAX_PATH] = {0};
|
||||||
char szPath = NULL;
|
char *szPath = NULL;
|
||||||
|
|
||||||
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {
|
if (SHGetSpecialFolderPathA(NULL, tmp, CSIDL_PROFILE, TRUE)) {
|
||||||
szPath = malloc(strlen(tmp) + 1);
|
szPath = malloc(strlen(tmp) + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user