From b774cfb9ff5abbdef4fdecdb0c0fb9f70a0f7f71 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 5 Mar 2011 00:29:27 +0000 Subject: [PATCH] Fix http://forums.duke4.net/index.php?s=&showtopic=2961&view=findpost&p=60758 git-svn-id: https://svn.eduke32.com/eduke32@1825 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 152e37bdc..0fa23a0e0 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1521,6 +1521,9 @@ static int32_t C_GetKeyword(void) C_SkipComments(); + if (*textptr == '\0') // EOF + return 0; + temptextptr = textptr; while (isaltok(*temptextptr) == 0)