]> git.ipfire.org Git - thirdparty/lldpd.git/commit
client: fix spurious warning in XML writer
authorVincent Bernat <vincent@bernat.im>
Thu, 19 May 2016 18:51:07 +0000 (20:51 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 19 May 2016 18:51:07 +0000 (20:51 +0200)
commitc7f0317fcdf274ff41e692d7aa621f61edf874fa
treef9a501eefb8315766b4256791f680ccebc0e7ad7
parenta25730a2638a9660f21b4684f53ddd50120c4a4b
client: fix spurious warning in XML writer

It seems that libxml doesn't like generating an empty
document. Therefore, we initialize the writer only when we are sure we
will get content.
src/client/xml_writer.c