Commit c42af938 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

oops

parent 62a4072c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;