Blame SOURCES/Query-Quiet-gcc-since-it-cannot-know-errno-0-in-this.patch

b7f731
From 0dfff0f24355ad4b5c1776f7f19a404ffae25415 Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <jsorensen@fb.com>
b7f731
Date: Fri, 21 Apr 2017 12:04:05 -0400
b7f731
Subject: [RHEL7.5 PATCH 090/169] Query: Quiet gcc since it cannot know
b7f731
 errno != 0 in this case
b7f731
b7f731
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
b7f731
---
b7f731
 Query.c | 3 +++
b7f731
 1 file changed, 3 insertions(+)
b7f731
b7f731
diff --git a/Query.c b/Query.c
b7f731
index 4dec9f5..2bd0e2a 100644
b7f731
--- a/Query.c
b7f731
+++ b/Query.c
b7f731
@@ -68,6 +68,9 @@ int Query(char *dev)
b7f731
 
b7f731
 		if (md_get_array_info(fd, &array) < 0) {
b7f731
 			ioctlerr = errno;
b7f731
+			level = -1;
b7f731
+			raid_disks = -1;
b7f731
+			spare_disks = -1;
b7f731
 		} else {
b7f731
 			level = array.level;
b7f731
 			raid_disks = array.raid_disks;
b7f731
-- 
b7f731
2.7.4
b7f731