mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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:
|
skipwhite:
|
||||||
while (isspace ((byte) *data))
|
while (isspace ((byte) *data))
|
||||||
data++;
|
data++;
|
||||||
if (!*data)
|
if (!*data) {
|
||||||
|
dstring_clearstr (_com_token);
|
||||||
|
com_token = _com_token->str;
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
if (data[0] == '/' && data[1] == '/') {
|
if (data[0] == '/' && data[1] == '/') {
|
||||||
while (*data && *data != '\n')
|
while (*data && *data != '\n')
|
||||||
data++;
|
data++;
|
||||||
|
|
Loading…
Reference in a new issue