vcpkg/ports/sdl2-image/0001-sdl2-image-potentially-uninitialized_local-pointer-variable-start.patch

13 lines
367 B
Diff
Raw Normal View History

--- a/nanosvg.h
+++ b/nanosvg.h
@@ -2778,7 +2778,7 @@ static void nsvg__content(void* ud, const char* s)
if (p->styleFlag) {
int state = 0;
- const char* start;
+ const char* start = 0;
while (*s) {
char c = *s;
if (nsvg__isspace(c) || c == '{') {