]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 24 Sep 2015 18:57:14 +0000 (14:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 Oct 2015 22:34:52 +0000 (18:34 -0400)
commitf84c6dd26def63304e085c40bdd7a42373139cbb
treec96f9ea8021d931a5d2c552b46a7528d93a06333
parent79bd55b3024a5d8695880b2a992b8a365bbb5b39
libxl: Resolve Coverity FORWARD_NULL

Since the strtok_r call in libxlCapsInitGuests expects a non NULL first
parameter when the third parameter is NULL, we need to check that
the returned 'capabilities' from a libxl_get_version_info call is
not NULL and error out if so since the code expects it.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/libxl/libxl_conf.c