]> xenbits.xensource.com Git - libvirt.git/commit
test.c: don't use undefined local, "def"
authorJim Meyering <meyering@redhat.com>
Thu, 3 Sep 2009 10:12:19 +0000 (12:12 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 3 Sep 2009 16:04:23 +0000 (18:04 +0200)
commit20f1f714ba4babd7b57f2b4a2657e9e58c60efc0
tree25d81efc27ca9ede800c4e7d26fd91825a16d7bd
parentf435a3002bd741d2056d278f255d91e862593b5d
test.c: don't use undefined local, "def"

* src/test.c (testOpenVolumesForPool): Upon early virAsprintf or
virXPathNodeSet failure, "goto error" would take us to
virStorageVolDefFree(def), but with "def" not defined.
Initialize it to NULL.
src/test.c