From 3d58952b2ae7288b745d52447dfbcd0a4adf5953 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 4 Oct 2019 17:36:15 -0700 Subject: [PATCH] Fixed accidentally clobbering SVG styles --- nanosvg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/nanosvg.h b/nanosvg.h index b5c2ecfc..8b2154be 100644 --- a/nanosvg.h +++ b/nanosvg.h @@ -2788,7 +2788,6 @@ static void nsvg__content(void* ud, const char* s) p->styles = (NSVGstyles*)malloc(sizeof(NSVGstyles)); p->styles->next = next; p->styles->name = nsvg__strndup(start, (size_t)(s - start)); - p->styles->next = NULL; start = s + 1; state = 2; }