_find_prefix: Exit when given an invalid prefix name.

This will be a nice safety check for internal sanity.
This commit is contained in:
Carl Worth 2009-10-23 14:45:33 -07:00
parent b3cbcea8fd
commit a5e619f11f

View file

@ -99,6 +99,9 @@ _find_prefix (const char *name)
if (strcmp (name, BOOLEAN_PREFIX[i].name) == 0) if (strcmp (name, BOOLEAN_PREFIX[i].name) == 0)
return BOOLEAN_PREFIX[i].prefix; return BOOLEAN_PREFIX[i].prefix;
fprintf (stderr, "Internal error: No prefix exists for '%s'\n", name);
exit (1);
return ""; return "";
} }