From 20a71cf801a6c3db7a4429059c6ac0d66f873073 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 7 Sep 2020 17:11:29 -0700 Subject: [PATCH] fix: call printTok when DEBUG is defined in HTML lexer Based on the prior `#ifdef DEBUG` in this file, it seems debugging is meant to be enabled whenever DEBUG is defined, regardless of its value. --- lib/common/htmllex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/htmllex.c b/lib/common/htmllex.c index a4c865913..e104a236c 100644 --- a/lib/common/htmllex.c +++ b/lib/common/htmllex.c @@ -1068,7 +1068,7 @@ int htmllex() if (endp) state.ptr = endp; } while (state.tok == 0); -#if DEBUG +#ifdef DEBUG printTok (state.tok); #endif return state.tok; -- 2.40.0