From: Jes Sorensen Date: Thu, 20 Apr 2017 04:13:31 +0000 (-0400) Subject: maps: Terminate 'modes' map correctly. X-Git-Tag: mdadm-4.1-rc1~182 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e47781fcea24778a16e4be53e5b84eab8db9413c;p=thirdparty%2Fmdadm.git maps: Terminate 'modes' map correctly. While we are unlikely to fail here, terminate the modes map correctly to ensure we don't start running over undefined data. Signed-off-by: Jes Sorensen --- diff --git a/maps.c b/maps.c index a8a4639a..a2d293ba 100644 --- a/maps.c +++ b/maps.c @@ -106,6 +106,7 @@ mapping_t modes[] = { { "grow", GROW}, { "incremental", INCREMENTAL}, { "auto-detect", AUTODETECT}, + { NULL, 0 } }; mapping_t faultylayout[] = {