Commit c42af938 authored by Dick Hollenbeck's avatar Dick Hollenbeck

oops

parent 62a4072c
......@@ -346,17 +346,18 @@ int DSNLEXER::NextTok() throw( IO_ERROR )
if( cur >= limit )
{
L_read:
cur = start;
// blank lines are returned as "\n" and will have a len of 1.
// EOF will have a len of 0 and so is detectable.
int len = readLine();
if( len == 0 )
{
cur = start; // after readLine(), since start can change, set cur offset to start
curTok = DSN_EOF;
goto exit;
}
cur = start; // after readLine() since start can change.
// skip leading whitespace
while( cur<limit && isSpace(*cur) )
++cur;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment