summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5620518)
raw | patch | inline | side by side (parent: 5620518)
author | Tommi Virtanen <tv@inoi.fi> | |
Wed, 30 Nov 2005 15:37:10 +0000 (17:37 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 30 Nov 2005 18:51:24 +0000 (10:51 -0800) |
Dereference the environment variable before using it.
Signed-off-by: Tommi Virtanen <tv@inoi.fi>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Tommi Virtanen <tv@inoi.fi>
Signed-off-by: Junio C Hamano <junkio@cox.net>
setup.c | patch | blob | history |
index cc44a724bf3220de1cb8a3ef818e581905d7265c..3286a568ed4c7d4c82bb18d779f05518fe05c9b3 100644 (file)
--- a/setup.c
+++ b/setup.c
if (validate_symref(path))
goto bad_dir_environ;
if (getenv(DB_ENVIRONMENT)) {
- if (access(DB_ENVIRONMENT, X_OK))
+ if (access(getenv(DB_ENVIRONMENT), X_OK))
goto bad_dir_environ;
}
else {