diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-29 06:03:23 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-29 06:03:23 (GMT) |
commit | 8c1f5f0f1f9c36ef5465512753efeff36758ba7d (patch) | |
tree | e27706307f48a9e5192f0b6bb873ecadf41dbed5 /path.c | |
parent | 933693da77857b12ba86d999a601dbdb8ab212ff (diff) | |
parent | 10d781b9caa4f71495c7b34963bef137216f86a8 (diff) | |
download | git-8c1f5f0f1f9c36ef5465512753efeff36758ba7d.zip git-8c1f5f0f1f9c36ef5465512753efeff36758ba7d.tar.gz git-8c1f5f0f1f9c36ef5465512753efeff36758ba7d.tar.bz2 |
Merge refs/heads/master from .
Diffstat (limited to 'path.c')
-rw-r--r-- | path.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -41,10 +41,12 @@ char *mkpath(const char *fmt, ...) char *git_path(const char *fmt, ...) { - const char *git_dir = gitenv(GIT_DIR_ENVIRONMENT) ? : DEFAULT_GIT_DIR_ENVIRONMENT; + const char *git_dir; va_list args; unsigned len; + git_dir = gitenv(GIT_DIR_ENVIRONMENT); + if (!git_dir) git_dir = DEFAULT_GIT_DIR_ENVIRONMENT; len = strlen(git_dir); if (len > PATH_MAX-100) return bad_path; |