diff options
| author | Andreas Schneider <mail@cynapses.org> | 2009-10-29 12:10:22 +0100 |
|---|---|---|
| committer | Andreas Schneider <mail@cynapses.org> | 2009-10-29 12:10:22 +0100 |
| commit | 89f031192764698e662235af93d4d04898319c25 (patch) | |
| tree | 5abb82cd915e19b32bd24d7fef27c0380d03a00b /libssh | |
| parent | e455f6f756fd6e3c8d112d3ee0190b91c1efb7e4 (diff) | |
| download | libssh-89f031192764698e662235af93d4d04898319c25.tar.gz libssh-89f031192764698e662235af93d4d04898319c25.tar.xz libssh-89f031192764698e662235af93d4d04898319c25.zip | |
Fixed a segfault on Windows.
Diffstat (limited to 'libssh')
| -rw-r--r-- | libssh/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/misc.c b/libssh/misc.c index 4d15a511..63ba9465 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -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); |
