]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: Resolve Coverity UNINIT
authorJohn Ferlan <jferlan@redhat.com>
Fri, 24 Apr 2015 17:57:30 +0000 (13:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 27 Apr 2015 10:57:51 +0000 (06:57 -0400)
commit id '1e13eff4' didn't init found when changed from a bool to
an int in virStoragePoolFCRefreshThread and Coverity...

src/storage/storage_backend_scsi.c

index f381ddb183402858e7d4397735755f510e4ca8de..e6c8bb586edc58381660ba9adf756f8a799fe3b6 100644 (file)
@@ -581,7 +581,7 @@ virStoragePoolFCRefreshThread(void *opaque)
     const char *name = cbdata->name;
     virStoragePoolObjPtr pool = cbdata->pool;
     unsigned int host;
-    int found;
+    int found = 0;
     int tries = 2;
 
     do {