diff options
| author | Vicent Marti <vicent@github.com> | 2014-04-07 20:51:39 +0200 |
|---|---|---|
| committer | Vicent Marti <vicent@github.com> | 2014-04-07 20:51:39 +0200 |
| commit | 5f74c476939894c4512262ec11188a44bfe4f50a (patch) | |
| tree | 978f691947f9d2425b9c106b765c2fb3f8b81553 /src | |
| parent | 6720eef938d7614cd7a9fd2138a27da3667d62cf (diff) | |
| parent | 7167fd7ef80f5f34337dd1c696f77ea2bb4d8bd8 (diff) | |
| download | libgit2-5f74c476939894c4512262ec11188a44bfe4f50a.tar.gz | |
Merge pull request #2255 from libgit2/rb/fix-multiple-nfd-iconv-bug
Fix bug with multiple iconv conversions in one dir
Diffstat (limited to 'src')
| -rw-r--r-- | src/path.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c index 1dccf90da..7cad28d45 100644 --- a/src/path.c +++ b/src/path.c @@ -782,6 +782,8 @@ 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_clear(&ic->buf); + while (1) { if (git_buf_grow(&ic->buf, wantlen + 1) < 0) return -1; |
