gdiplus: Initialize a variable in SOFTWARE_GdipFillRegion to avoid a compiler warning.
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.
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
@@ -3673,7 +3673,7 @@ static GpStatus SOFTWARE_GdipFillRegion(GpGraphics *graphics, GpBrush *brush,
UINT scans_count, i;
- GpRect *scans;
+ GpRect *scans = NULL;
More information about the wine-patches