1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

misc: Use the szPath variable instead of calling getenv.

This commit is contained in:
Andreas Schneider
2013-07-16 13:36:52 +02:00
parent 11c82a26a6
commit c4937cedea

View File

@@ -219,7 +219,7 @@ char *ssh_get_user_home_dir(void) {
return NULL; return NULL;
} }
memset(buf, 0, sizeof(buf)); memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf), "%s", getenv("HOME")); snprintf(buf, sizeof(buf), "%s", szPath);
return strdup(buf); return strdup(buf);
} }