vmg is always right

This commit is contained in:
Russell Belfer 2014-04-07 11:51:12 -07:00
parent c813b34550
commit 7167fd7ef8

View File

@ -782,7 +782,7 @@ int git_path_iconv(git_path_iconv_t *ic, char **in, size_t *inlen)
!git_path_has_non_ascii(*in, *inlen))
return 0;
git_buf_truncate(&ic->buf, 0);
git_buf_clear(&ic->buf);
while (1) {
if (git_buf_grow(&ic->buf, wantlen + 1) < 0)