On Tue, May 28, 2019 at 05:28:54PM +0200, Andrea Bolognani wrote:
Ensure unexpected values are dealt with correctly, that
is by invoking virReportEnumRangeError() and immediately
returning a negative value to the caller.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/qemu/qemu_command.c | 10 ++++++++--
src/qemu/qemu_domain.c | 1 +
2 files changed, 9 insertions(+), 2 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano