]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_driver: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 11:56:00 +0000 (07:56 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 16:52:27 +0000 (12:52 -0400)
commitbab35f74196be35e1f3801426755a20ec0d7c0a7
tree3c66bdb364489c311b79be69b40642ce51db76d8
parentcfbbeb36cf204fb2d87d45c5b8e9e676afefdfcd
storage_driver: Resolve Coverity REVERSE_INULL

There were two occurrances of attempting to initialize actualType by
calling virStorageSourceGetActualType(src) prior to a check if (!src)
resulting in Coverity complaining about the possible NULL dereference
in virStorageSourceGetActualType() of src.

Resolve by moving the actualType setting until after checking !src
src/storage/storage_driver.c