mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
be sure to clear com_token when end of file is hit
This commit is contained in:
parent
be6a7ae715
commit
aa4d1f5c90
1 changed files with 4 additions and 1 deletions
|
@ -107,8 +107,11 @@ COM_Parse (const char *data)
|
|||
skipwhite:
|
||||
while (isspace ((byte) *data))
|
||||
data++;
|
||||
if (!*data)
|
||||
if (!*data) {
|
||||
dstring_clearstr (_com_token);
|
||||
com_token = _com_token->str;
|
||||
return 0;
|
||||
}
|
||||
if (data[0] == '/' && data[1] == '/') {
|
||||
while (*data && *data != '\n')
|
||||
data++;
|
||||
|
|
Loading…
Reference in a new issue