be sure to clear com_token when end of file is hit

This commit is contained in:
Bill Currie 2003-07-27 21:45:53 +00:00
parent be6a7ae715
commit aa4d1f5c90

View file

@ -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++;