From: John Ferlan Date: Fri, 24 Apr 2015 17:57:30 +0000 (-0400) Subject: storage: Resolve Coverity UNINIT X-Git-Tag: v1.2.15-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02594260606008e004997477b76bac1de28b3bed;p=thirdparty%2Flibvirt.git storage: Resolve Coverity UNINIT commit id '1e13eff4' didn't init found when changed from a bool to an int in virStoragePoolFCRefreshThread and Coverity... --- diff --git a/src/storage/storage_backend_scsi.c b/src/storage/storage_backend_scsi.c index f381ddb183..e6c8bb586e 100644 --- a/src/storage/storage_backend_scsi.c +++ b/src/storage/storage_backend_scsi.c @@ -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 {