From b32ce34cf2b5e48eab4f626f378d50f365b594a3 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 24 Nov 2015 09:34:55 +0000 Subject: Don't allow options in table without scope set. --- options-table.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options-table.c') diff --git a/options-table.c b/options-table.c index dc4922ba..0dab0c0e 100644 --- a/options-table.c +++ b/options-table.c @@ -892,6 +892,8 @@ options_table_populate_tree(enum options_table_scope scope, struct options *oo) const struct options_table_entry *oe; for (oe = options_table; oe->name != NULL; oe++) { + if (oe->scope == OPTIONS_TABLE_NONE) + fatalx("no scope for %s", oe->name); if (oe->scope != scope) continue; switch (oe->type) { -- cgit