]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
replace xstrdup(git_path(...)) with git_pathdup(...)
authorJeff King <peff@peff.net>
Thu, 20 Apr 2017 21:09:09 +0000 (17:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Apr 2017 04:04:15 +0000 (21:04 -0700)
commitd9c69644b27eb59fe16c1931580e6fce4abbdc65
tree71ecd47a9565debbbfe144c4f3edfe631f905f07
parentca03e0670c3ba71400b0f5ed199b045481efdb1e
replace xstrdup(git_path(...)) with git_pathdup(...)

It's more efficient to use git_pathdup(), as it skips an
extra copy of the path. And by removing some calls to
git_path(), it makes it easier to audit for dangerous uses.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
fast-import.c