diff mbox

[02/11] ndctl: fix uninitialized variable in test-parent-uuid

Message ID 20151015210554.22046.98311.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State Accepted
Commit c2a62fd64095
Headers show

Commit Message

Dan Williams Oct. 15, 2015, 9:05 p.m. UTC
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 lib/test-parent-uuid.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/test-parent-uuid.c b/lib/test-parent-uuid.c
index 042ea6ba5a6d..676b3ad63b15 100644
--- a/lib/test-parent-uuid.c
+++ b/lib/test-parent-uuid.c
@@ -128,7 +128,7 @@  static int do_test(struct ndctl_ctx *ctx)
 	int rc;
 	struct ndctl_bus *bus;
 	struct ndctl_btt *btt, *found = NULL, *_btt;
-	struct ndctl_region *region, *blk_region;
+	struct ndctl_region *region, *blk_region = NULL;
 	struct ndctl_namespace *ndns, *_ndns;
 	unsigned long long ns_size = 18874368;
 	uuid_t uuid = {0,  1,  2,  3,  4,  5,  6,  7, 8, 9, 10, 11, 12, 13, 14, 16};