diff options
author | Jeff King <peff@peff.net> | 2015-08-10 05:35:38 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 15:37:12 -0700 |
commit | e3cf230324f740653d4fb4a3087c2daf9da62029 (patch) | |
tree | a463f382e6d547ae669948bf4a40175be3063113 /line-range.c | |
parent | prefer git_pathdup to git_path in some possibly-dangerous cases (diff) | |
download | tgif-e3cf230324f740653d4fb4a3087c2daf9da62029.tar.xz |
prefer mkpathdup to mkpath in assignments
As with the previous commit to git_path, assigning the
result of mkpath is suspicious, since it is not clear
whether we will still depend on the value after it may have
been overwritten by subsequent calls. This patch converts
low-hanging fruit to use mkpathdup instead of mkpath (with
the downside that we must remember to free the result).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-range.c')
0 files changed, 0 insertions, 0 deletions