diff options
author | Russell Belfer <rb@github.com> | 2014-04-07 11:51:12 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-07 11:51:12 -0700 |
commit | 7167fd7ef80f5f34337dd1c696f77ea2bb4d8bd8 (patch) | |
tree | 978f691947f9d2425b9c106b765c2fb3f8b81553 /src/path.c | |
parent | c813b345503f7b086da7ca1b2d95270e00594323 (diff) | |
download | libgit2-7167fd7ef80f5f34337dd1c696f77ea2bb4d8bd8.tar.gz |
vmg is always right
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index 56b6c87f9..7cad28d45 100644 --- a/src/path.c +++ b/src/path.c @@ -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) |