summaryrefslogtreecommitdiffstats
path: root/maps.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-04-20 06:13:31 +0200
committerJes Sorensen <jsorensen@fb.com>2017-04-20 06:13:31 +0200
commite47781fcea24778a16e4be53e5b84eab8db9413c (patch)
tree449b205fd14a772097b8fbac4f3ebf5cd35810d8 /maps.c
parentutil: Introduce md_array_active() helper (diff)
downloadmdadm-e47781fcea24778a16e4be53e5b84eab8db9413c.tar.xz
mdadm-e47781fcea24778a16e4be53e5b84eab8db9413c.zip
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 <jsorensen@fb.com>
Diffstat (limited to 'maps.c')
-rw-r--r--maps.c1
1 files changed, 1 insertions, 0 deletions
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[] = {