Fix non-literal format in printf-style calls
These were found using gcc 4.3.2-1ubuntu11 with the warning: warning: format not a string literal and no format arguments Incorporated suggestions from Brandon Casey <casey@nrlssc.navy.mil>. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
989206f535
commit
9db56f71b9
@ -113,7 +113,7 @@ const char *get_git_work_tree(void)
|
||||
work_tree = git_work_tree_cfg;
|
||||
/* make_absolute_path also normalizes the path */
|
||||
if (work_tree && !is_absolute_path(work_tree))
|
||||
work_tree = xstrdup(make_absolute_path(git_path(work_tree)));
|
||||
work_tree = xstrdup(make_absolute_path(git_path("%s", work_tree)));
|
||||
} else if (work_tree)
|
||||
work_tree = xstrdup(make_absolute_path(work_tree));
|
||||
git_work_tree_initialized = 1;
|
||||
|
Reference in New Issue
Block a user