summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-23 21:52:42 -0700
committerRussell Belfer <rb@github.com>2013-09-23 21:52:42 -0700
commit00e859279e361734aa38adfbbb16d25af0be8bda (patch)
treec3e6c39db191df72ec2adf14f2f5a4505025ab51 /src/buffer.c
parent713793133f65569561c6ca518f61acdddd1d3b65 (diff)
downloadlibgit2-00e859279e361734aa38adfbbb16d25af0be8bda.tar.gz
Clean up unnecessary git_buf_printf calls
This replaces some git_buf_printf calls with simple calls to git_buf_put instead. Also, it fixes a missing va_end inside the git_buf_vprintf implementation.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1371607fe..20682322e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -211,6 +211,8 @@ int git_buf_vprintf(git_buf *buf, const char *format, va_list ap)
format, args
);
+ va_end(args);
+
if (len < 0) {
git__free(buf->ptr);
buf->ptr = git_buf__oom;