]> granicus.if.org Git - graphviz/commitdiff
fix: call printTok when DEBUG is defined in HTML lexer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Sep 2020 00:11:29 +0000 (17:11 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 14 Sep 2020 03:51:15 +0000 (20:51 -0700)
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

index a4c865913994155d0d597c88549a8eeba691c0d2..e104a236c50f3cf576102630b10ba5d94f449dcf 100644 (file)
@@ -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;