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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user