Blame SOURCES/maps-Terminate-modes-map-correctly.patch

2c1b57
From e47781fcea24778a16e4be53e5b84eab8db9413c Mon Sep 17 00:00:00 2001
2c1b57
From: Jes Sorensen <jsorensen@fb.com>
2c1b57
Date: Thu, 20 Apr 2017 00:13:31 -0400
2c1b57
Subject: [RHEL7.5 PATCH 083/169] maps: Terminate 'modes' map correctly.
2c1b57
2c1b57
While we are unlikely to fail here, terminate the modes map correctly
2c1b57
to ensure we don't start running over undefined data.
2c1b57
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 maps.c | 1 +
2c1b57
 1 file changed, 1 insertion(+)
2c1b57
2c1b57
diff --git a/maps.c b/maps.c
2c1b57
index a8a4639..a2d293b 100644
2c1b57
--- a/maps.c
2c1b57
+++ b/maps.c
2c1b57
@@ -106,6 +106,7 @@ mapping_t modes[] = {
2c1b57
 	{ "grow", GROW},
2c1b57
 	{ "incremental", INCREMENTAL},
2c1b57
 	{ "auto-detect", AUTODETECT},
2c1b57
+	{ NULL, 0 }
2c1b57
 };
2c1b57
 
2c1b57
 mapping_t faultylayout[] = {
2c1b57
-- 
2c1b57
2.7.4
2c1b57