]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: silence coverity warnings
authorEric Blake <eblake@redhat.com>
Mon, 4 Jul 2011 02:23:46 +0000 (10:23 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 4 Jul 2011 02:23:46 +0000 (10:23 +0800)
commitaaea56dc99079d277315fc845fb344a6141ada85
tree58594cef7fef9f13336b6ea7dba4812d4ac4cdc0
parent6e07f72ee53738d8a91784bd3df633e9b51e7a6c
qemu: silence coverity warnings

Coverity warns if the majority of callers check a function for
errors, but a few don't; but in qemu_audit and qemu_domain, the
choice to not check for failures was safe.  In qemu_command, the
failure to generate a uuid can only occur on a bad pointer.

* src/qemu/qemu_audit.c (qemuAuditCgroup): Ignore failure to get
  cgroup controller.
* src/qemu/qemu_domain.c (qemuDomainObjEnterMonitor)
  (qemuDomainObjEnterMonitorWithDriver): Ignore failure to get
  timestamp.
* src/qemu/qemu_command.c (qemuParseCommandLine): Check for error.
src/qemu/qemu_audit.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c