[scorched3d] libpng may be expected to allocate png_palette

Bruno Wolff III bruno at fedoraproject.org
Tue Nov 8 00:28:22 UTC 2011


commit c4571fbfcd6cd685d14a7b0ec913e096229c090f
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Mon Nov 7 07:02:10 2011 -0600

    libpng may be expected to allocate png_palette
    
    It may be necessary to set the initial value of png_palette to NULL
    so that libpng knows to do an allocation. This may also help with
    debugging the problem even if it doesn't fix it.

 scorched3d-libpng15.patch |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scorched3d-libpng15.patch b/scorched3d-libpng15.patch
index 1650356..93f9e07 100644
--- a/scorched3d-libpng15.patch
+++ b/scorched3d-libpng15.patch
@@ -15,8 +15,8 @@
  	Uint32 Bmask;
  	Uint32 Amask;
  	SDL_Palette *palette;
-+	int num_palette;
-+	png_colorp png_palette;
++	int num_palette = 0;
++	png_colorp png_palette = NULL;
  	png_bytep *volatile row_pointers;
  	int row, i;
  	volatile int ckey = -1;


More information about the scm-commits mailing list