diff options
| -rw-r--r-- | src/Fl_PNG_Image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_PNG_Image.cxx b/src/Fl_PNG_Image.cxx index 5efe6857f..2a6d0ebc6 100644 --- a/src/Fl_PNG_Image.cxx +++ b/src/Fl_PNG_Image.cxx @@ -98,7 +98,7 @@ Fl_PNG_Image::Fl_PNG_Image(const char *png) // I - File to read else channels = 1; - int num_trans; + int num_trans = 0; png_get_tRNS(pp, info, 0, &num_trans, 0); if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || (num_trans != 0)) channels ++; |
