Fixed accidentally clobbering SVG styles
authorSam Lantinga <slouken@libsdl.org>
Fri, 04 Oct 2019 17:36:15 -0700
changeset 7146bd67fc93794
parent 713 6e5a3c354f04
child 715 390d5eed8b2d
Fixed accidentally clobbering SVG styles
nanosvg.h
     1.1 --- a/nanosvg.h	Fri Oct 04 18:47:10 2019 +0300
     1.2 +++ b/nanosvg.h	Fri Oct 04 17:36:15 2019 -0700
     1.3 @@ -2788,7 +2788,6 @@
     1.4  					p->styles = (NSVGstyles*)malloc(sizeof(NSVGstyles));
     1.5  					p->styles->next = next;
     1.6  					p->styles->name = nsvg__strndup(start, (size_t)(s - start));
     1.7 -					p->styles->next = NULL;
     1.8  					start = s + 1;
     1.9  					state = 2;
    1.10  				}