From 39ae4651bfb66eca09020677bf56da37134a5dab Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 19 Jan 2011 06:29:06 +0000 Subject: [PATCH] Removed compiler warning: Fl_PNG_Image.cxx:108: warning: 'fp' may be used uninitialized in this function git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_PNG_Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_PNG_Image.cxx b/src/Fl_PNG_Image.cxx index 9e68ab3d8..6bf39b28c 100644 --- a/src/Fl_PNG_Image.cxx +++ b/src/Fl_PNG_Image.cxx @@ -105,7 +105,7 @@ void Fl_PNG_Image::load_png_(const char *name_png, const unsigned char *buffer_p { #if defined(HAVE_LIBPNG) && defined(HAVE_LIBZ) int i; // Looping var - FILE *fp; // File pointer + FILE *fp = NULL; // File pointer int channels; // Number of color channels png_structp pp; // PNG read pointer png_infop info; // PNG info pointers