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>
This commit is contained in:
Jes Sorensen 2017-04-20 00:13:31 -04:00
parent 3ab8f4bf33
commit e47781fcea
1 changed files with 1 additions and 0 deletions

1
maps.c
View File

@ -106,6 +106,7 @@ mapping_t modes[] = {
{ "grow", GROW},
{ "incremental", INCREMENTAL},
{ "auto-detect", AUTODETECT},
{ NULL, 0 }
};
mapping_t faultylayout[] = {