diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-23 14:45:33 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-23 14:45:33 -0700 |
commit | a5e619f11ffe034cfe2dc13207961ed6db5ab5ba (patch) | |
tree | 783df7118e4372c58389f4331446051db4224822 /message.cc | |
parent | b3cbcea8fdfdc71c5021fac483943a45ace816d3 (diff) |
_find_prefix: Exit when given an invalid prefix name.
This will be a nice safety check for internal sanity.
Diffstat (limited to 'message.cc')
-rw-r--r-- | message.cc | 3 |
1 files changed, 3 insertions, 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 ""; } |