Merge branch 'rs/cleanup-strbuf-users'

Code clean-up.

* rs/cleanup-strbuf-users:
  graph: use strbuf_addchars() to add spaces
  use strbuf_addstr() for adding strings to strbufs
  path: use strbuf_add_real_path()
This commit is contained in:
Junio C Hamano
2017-10-05 13:48:19 +09:00
5 changed files with 8 additions and 12 deletions

2
path.c
View File

@ -718,7 +718,7 @@ char *expand_user_path(const char *path, int real_home)
if (!home)
goto return_null;
if (real_home)
strbuf_addstr(&user_path, real_path(home));
strbuf_add_real_path(&user_path, home);
else
strbuf_addstr(&user_path, home);
#ifdef GIT_WINDOWS_NATIVE