]> git.proxmox.com Git - libgit2.git/commit - src/oid.c
Make git_oid_tostr use out buffer for NULL oid
authorRussell Belfer <rb@github.com>
Wed, 19 Dec 2012 23:06:14 +0000 (15:06 -0800)
committerRussell Belfer <rb@github.com>
Fri, 4 Jan 2013 23:47:42 +0000 (15:47 -0800)
commit8fe713ccf7bf8c6330fdda7f0c733e7f3ab29d3f
treeafb53ab99c90d710cd31fa9bb21cf03c059778b9
parent5cf9875a4f6ee6fa26f5617aca8433dd49c72751
Make git_oid_tostr use out buffer for NULL oid

Previously a NULL oid was handled like an empty buffer and
returned a status empty string.  This makes git_oid_tostr()
set the output buffer to the empty string instead.
src/oid.c
tests-clar/object/raw/convert.c