Imported from libpng-1.2.5rc2.tar
diff --git a/example.c b/example.c
index 1cc450f..7956cf7 100644
--- a/example.c
+++ b/example.c
@@ -282,7 +282,7 @@
       /* This reduces the image to the palette supplied in the file */
       else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette))
       {
-         png_uint_16p histogram;
+         png_uint_16p histogram = NULL;
 
          png_get_hIST(png_ptr, info_ptr, &histogram);