diff options
author | Russell Belfer <rb@github.com> | 2013-09-24 08:52:42 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-24 08:52:42 +0400 |
commit | 00e859279e361734aa38adfbbb16d25af0be8bda (patch) | |
tree | c3e6c39db191df72ec2adf14f2f5a4505025ab51 /src/buffer.c | |
parent | 713793133f65569561c6ca518f61acdddd1d3b65 (diff) |
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.c | 2 |
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; |