]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virbuffer: Set child buffer indent properly
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 11 May 2018 12:05:53 +0000 (14:05 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 May 2018 15:04:12 +0000 (17:04 +0200)
commitebad530e9f90f9885ae4c279a66497ee3b457d84
tree8030f49ff8eb806467afe9d540e47304a99a8459
parentb3f75d9980655a3c75a434a2a614b732b93314cf
virbuffer: Set child buffer indent properly

There's this macro virBufferSetChildIndent which sets offset of
child buffer from given parent buffer. However, it is calling
virBufferAdjustIndent() which only adds adjustment instead of
calling virBufferSetIndent() which clears out any adjustment
previously set.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virbuffer.h