mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
_find_prefix: Exit when given an invalid prefix name.
This will be a nice safety check for internal sanity.
This commit is contained in:
parent
b3cbcea8fd
commit
a5e619f11f
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ _find_prefix (const char *name)
|
|||
if (strcmp (name, BOOLEAN_PREFIX[i].name) == 0)
|
||||
return BOOLEAN_PREFIX[i].prefix;
|
||||
|
||||
fprintf (stderr, "Internal error: No prefix exists for '%s'\n", name);
|
||||
exit (1);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue