virQEMUCapsNewBinary: Avoid NULL dereference
virQEMUCapsNewBinary: Avoid NULL dereference

Even with GLib it is still possible for virQEMUCapsNew() to
return NULL because it calls virQEMUCapsInitialize() which is a
wrapper over pthread_once() which may fail. At least, we still
check for its retval. If it so happens that the virQEMUCapsNew()
fails and returns NULL, we should not dereference it.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

olafhering/libvirt,nertpinx/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,jfehlig/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,olafhering/libvirt,jardasgit/libvirt,libvirt/libvirt,nertpinx/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jardasgit/libvirt,libvirt/libvirt,nertpinx/libvirt,jfehlig/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,crobinso/libvirt