gdiplus: Initialize a variable in SOFTWARE_GdipFillRegion to avoid a compiler warning.
Gerald Pfeifer
gerald at pfeifer.com
Sat Apr 2 15:35:17 CDT 2011
I carefully looked at the code in question, and it seems to be correct,
alas a bit twisted in ways that compilers (notably GCC 4.5 here, though
pretty likely others, too) struggle to identify that.
Gerald
---
dlls/gdiplus/graphics.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 49f3495..4087f5e 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -3673,7 +3673,7 @@ static GpStatus SOFTWARE_GdipFillRegion(GpGraphics *graphics, GpBrush *brush,
GpRectF graphics_bounds;
UINT scans_count, i;
INT dummy;
- GpRect *scans;
+ GpRect *scans = NULL;
DWORD *pixel_data;
if (!brush_can_fill_pixels(brush))
--
1.7.4.1
More information about the wine-patches
mailing list