]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Resolve Coverity complaint in storagevolxml2argvtest
authorJán Tomko <jtomko@redhat.com>
Fri, 26 Jul 2013 11:10:12 +0000 (13:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 26 Jul 2013 12:17:02 +0000 (14:17 +0200)
commit99d3a60b1f612af79c713764002eaa1d000754b0
treea922877890fd86500085e677840ef7d7a6609111
parent4d59d5a7d26ed7ab8663b2890f92896e0e0c7caf
Resolve Coverity complaint in storagevolxml2argvtest

Ignore NULL pool in testSetVolumeType to silence Coverity,
even though we only call it with NULL pool when vol is also NULL.

(13) Event var_deref_model: Passing null pointer "inputpool" to
function "testSetVolumeType(virStorageVolDefPtr, virStoragePoolDefPtr)",
which dereferences it. [details]
Also see events: [assign_zero]

95    testSetVolumeType(inputvol, inputpool);
tests/storagevolxml2argvtest.c