summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Leech <cleech@redhat.com>2019-10-30 12:11:42 -0700
committerChris Leech <cleech@redhat.com>2019-10-31 15:48:08 -0700
commit65c06d977a012541fd6144d4452f5191081fdd44 (patch)
treeb1c380f0e0e245ad66f62b97bee5779bd2933621
parentaa0e934c3513ca8fac9de463e328b5a150d057f5 (diff)
downloadopen-iscsi-65c06d977a012541fd6144d4452f5191081fdd44.tar.gz
Uninitialized scalar variable
-rw-r--r--usr/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/host.c b/usr/host.c
index 62bf111..356650c 100644
--- a/usr/host.c
+++ b/usr/host.c
@@ -217,7 +217,7 @@ static int print_host_iface(void *data, struct iface_rec *iface)
static void print_host_ifaces(struct host_info *hinfo, char *prefix)
{
- int nr_found;
+ int nr_found = 0;
iscsi_sysfs_for_each_iface_on_host(prefix, hinfo->host_no, &nr_found,
print_host_iface);