summaryrefslogtreecommitdiff
path: root/maps.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-04-20 00:13:31 -0400
committerJes Sorensen <jsorensen@fb.com>2017-04-20 00:13:31 -0400
commite47781fcea24778a16e4be53e5b84eab8db9413c (patch)
tree449b205fd14a772097b8fbac4f3ebf5cd35810d8 /maps.c
parent3ab8f4bf33d906cb1084f7b4036556bfb4bb73ec (diff)
downloadmdadm-e47781fcea24778a16e4be53e5b84eab8db9413c.tar.gz
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 a8a4639..a2d293b 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[] = {