summaryrefslogtreecommitdiffstats
path: root/python/examples
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-08 11:17:27 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-08 18:14:34 +0000
commitdb985c0485ae7a956ea71f5f5737d538c4185cd9 (patch)
tree860ebb0c3c6867072c0b374126af921474caf950 /python/examples
parent2fdbc4042fd5e1af61037c34eaa01bb068da25a0 (diff)
downloadlibguestfs-db985c0485ae7a956ea71f5f5737d538c4185cd9.tar.gz
libguestfs-db985c0485ae7a956ea71f5f5737d538c4185cd9.tar.xz
libguestfs-db985c0485ae7a956ea71f5f5737d538c4185cd9.zip
Check return values of guestfs_inspect_get_{type,distro} (found by Coverity).
Error: NULL_RETURNS: /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:129: var_assigned: Assigning: "guest_distro" = null return value from "guestfs_inspect_get_distro". /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:131: dereference: Dereferencing a pointer that might be null "guest_distro" when calling "__coverity_strcmp". [...] /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:126: var_assigned: Assigning: "guest_type" = null return value from "guestfs_inspect_get_type". /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:128: dereference: Dereferencing a pointer that might be null "guest_type" when calling "__coverity_strcmp". (cherry picked from commit 618954a6b0adc3e0eacda799b88f020c801a0106)
Diffstat (limited to 'python/examples')
0 files changed, 0 insertions, 0 deletions