From: Matthew Fernandez Date: Tue, 8 Sep 2020 00:11:29 +0000 (-0700) Subject: fix: call printTok when DEBUG is defined in HTML lexer X-Git-Tag: 2.46.0~20^2^2~82^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20a71cf801a6c3db7a4429059c6ac0d66f873073;p=graphviz 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. --- 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;