mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
if a string token was immediately followed by an EOF token, ungetting the
string token would fail.
This commit is contained in:
parent
26e801318b
commit
729916054d
1 changed files with 5 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lex.c,v 1.47 2000/11/16 03:44:41 bwelling Exp $ */
|
||||
/* $Id: lex.c,v 1.48 2000/11/17 00:34:37 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -320,6 +320,10 @@ typedef enum {
|
|||
static void
|
||||
pushback(inputsource *source, int c) {
|
||||
REQUIRE(source->pushback->current > 0);
|
||||
if (c == EOF) {
|
||||
source->at_eof = ISC_FALSE;
|
||||
return;
|
||||
}
|
||||
source->pushback->current--;
|
||||
if (c == '\n')
|
||||
source->line--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue