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