]> xenbits.xensource.com Git - libvirt.git/commit
util: Check for negative indent in virBufferAdd
authorJohn Ferlan <jferlan@redhat.com>
Tue, 15 Jan 2013 18:12:59 +0000 (13:12 -0500)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Jan 2013 09:52:39 +0000 (10:52 +0100)
commit79611c59684b5980e747122baf23d115c03b7e34
tree8f31cbab3e23985d2dd06d1a6b310a5a0b7e6081
parente69a85cc2b70c13142b176177290e61c5df18df1
util: Check for negative indent in virBufferAdd

Since virBufferGetIndent() will check and fail on buf->error, I
removed that check from virBufferAdd() and used the -1 return as the
way to exit.
src/util/virbuffer.c