]> xenbits.xensource.com Git - libvirt.git/commit
iohelper: Remove remaining newlines from error messages
authorAndrea Bolognani <abologna@redhat.com>
Tue, 19 Feb 2019 15:03:54 +0000 (16:03 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 20 Feb 2019 07:51:39 +0000 (08:51 +0100)
commit939f2542342d9d7caf26b05e3e693d664acbb625
tree80f8a7679ee0e179e87715ffe2134fde9a6ba964
parenta27031c4085906612804776a489a39da4d9ba963
iohelper: Remove remaining newlines from error messages

The iohelper is an internal program that's only supposed to
be called by libvirt, and whatever output it might produce
will ultimately be passed to virReportError() or similar.

Since we do not want strings passed to those functions to
contain newlines, we can simply not output them in the first
place.

This is what happens in pretty much all cases already, but
in a couple instances newlines have managed to slip in.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@laine.org>
src/util/iohelper.c