fix macro expansion
[m6w6/ext-psi] / src / token.c
index f3beb2cf39f6a6b72676c214ec7b12e53ed80450..18c74375fe0b84eb18cd5fadf0994e7774755762 100644 (file)
@@ -196,6 +196,11 @@ void psi_token_dump(struct psi_dump *dump, struct psi_token *t)
 {
        size_t i;
 
+       if (!t) {
+               PSI_DUMP(dump, "TOKEN deleted\n");
+               return;
+       }
+
        PSI_DUMP(dump, "TOKEN %p (%u) ", t, t->type);
        if (t->type == PSI_T_EOF) {
                PSI_DUMP(dump, "EOF");