summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-07 11:51:12 -0700
committerRussell Belfer <rb@github.com>2014-04-07 11:51:12 -0700
commit7167fd7ef80f5f34337dd1c696f77ea2bb4d8bd8 (patch)
tree978f691947f9d2425b9c106b765c2fb3f8b81553 /src/path.c
parentc813b345503f7b086da7ca1b2d95270e00594323 (diff)
downloadlibgit2-7167fd7ef80f5f34337dd1c696f77ea2bb4d8bd8.tar.gz
vmg is always right
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
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)