X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=6e3656f50fd90e9144e9f27177fc9a10673391ad;hb=248fc90e3d2cb0c3e2bcc6cace7d11d4ff763db0;hp=2b6a58b212a7561eab784dad1a151566319cab4f;hpb=1c4fcaf43edea3d1a29fe6f4949f6397c314c67e;p=open-adventure.git diff --git a/misc.c b/misc.c index 2b6a58b..6e3656f 100644 --- a/misc.c +++ b/misc.c @@ -483,6 +483,10 @@ int get_special_vocab_id(const char* word) long get_vocab_id(const char* word) // Search the vocab categories in order for the supplied word. { + /* Check for an empty string */ + if (strncmp(word, "", sizeof("")) == 0) + return (WORD_EMPTY); + long ref_num; /* FIXME: Magic numbers related to vocabulary */