mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
misc: Use the szPath variable instead of calling getenv.
This commit is contained in:
@@ -219,7 +219,7 @@ char *ssh_get_user_home_dir(void) {
|
||||
return NULL;
|
||||
}
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf), "%s", getenv("HOME"));
|
||||
snprintf(buf, sizeof(buf), "%s", szPath);
|
||||
|
||||
return strdup(buf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user