]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix bug in token pruning
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 21 Nov 2017 22:13:45 +0000 (17:13 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Tue, 21 Nov 2017 22:13:45 +0000 (17:13 -0500)
Sources/libMultiMarkdown/token.c

index b71dc1ee4c11d51d574c7edd4a0395a75b157cc4..a088d5e8383c4b4ab30332addc0305735537b05c 100644 (file)
@@ -369,6 +369,11 @@ token * token_prune_graft(token * first, token * last, unsigned short container_
                next->prev = first;
        }
 
+       // Fix tail
+       if (first->next == NULL) {
+               first->tail = first;
+       }
+
        return first;
 }