SDL_image: nanosvgrast.h: updated qsort patch from mainstream PR/210

From aeef9d487e0dff84171442146a88eaad80796a3c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 7 May 2022 17:33:10 +0300
Subject: [PATCH] nanosvgrast.h: updated qsort patch from mainstream PR/210

---
 nanosvgrast.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nanosvgrast.h b/nanosvgrast.h
index 620f4d7..28d9361 100644
--- a/nanosvgrast.h
+++ b/nanosvgrast.h
@@ -1416,7 +1416,7 @@ NSVG_EXPORT void nsvgRasterize(NSVGrasterizer* r,
 			}
 
 			// Rasterize edges
-			if (r->edges != NULL)
+			if (r->nedges != 0)
 				qsort(r->edges, r->nedges, sizeof(NSVGedge), nsvg__cmpEdge);
 
 			// now, traverse the scanlines and find the intersections on each scanline, use non-zero rule
@@ -1443,7 +1443,7 @@ NSVG_EXPORT void nsvgRasterize(NSVGrasterizer* r,
 			}
 
 			// Rasterize edges
-			if (r->edges != NULL)
+			if (r->nedges != 0)
 				qsort(r->edges, r->nedges, sizeof(NSVGedge), nsvg__cmpEdge);
 
 			// now, traverse the scanlines and find the intersections on each scanline, use non-zero rule