diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-16 13:36:52 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-16 13:36:52 +0200 |
commit | c4937cedeaea7983407ee3f9432d1355927f3c5f (patch) | |
tree | 83a0d974af6cc0848a426152cfab876b4212d648 | |
parent | 11c82a26a6ff522c0e1ab72a245fdf299b91206a (diff) | |
download | libssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.tar.gz libssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.tar.xz libssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.zip |
misc: Use the szPath variable instead of calling getenv.
-rw-r--r-- | src/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |