aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-16 13:36:52 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-16 13:36:52 +0200
commitc4937cedeaea7983407ee3f9432d1355927f3c5f (patch)
tree83a0d974af6cc0848a426152cfab876b4212d648
parent11c82a26a6ff522c0e1ab72a245fdf299b91206a (diff)
downloadlibssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.tar.gz
libssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.tar.xz
libssh-c4937cedeaea7983407ee3f9432d1355927f3c5f.zip
misc: Use the szPath variable instead of calling getenv.
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index c9ca0f09..18a59d60 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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);
}