diff options
author | Jeff King <peff@peff.net> | 2017-04-20 17:09:30 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-20 21:04:20 -0700 |
commit | 8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2 (patch) | |
tree | 239417b4ea3d79c3fb2561a6c28d8f367bb6508c /ewah/ewah_io.c | |
parent | replace xstrdup(git_path(...)) with git_pathdup(...) (diff) | |
download | tgif-8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2.tar.xz |
replace strbuf_addstr(git_path()) with git_path_buf()
Writing directly into the strbuf avoids a useless copy of
the data, and dropping calls to git_path() makes it easier
to audit for dangerous calls.
Note that git_path() does an implicit strbuf_reset(), but in
each of these cases we were either already doing that reset,
or writing into a fresh strbuf anyway.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewah_io.c')
0 files changed, 0 insertions, 0 deletions