From cbd3bd40a91522dad26142d42152e6edda1f618f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 22 Feb 2006 15:27:39 +0000 Subject: [PATCH] Don't try to load image file we couldn't open git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Shared_Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx index b7447ff90..7d6065077 100644 --- a/src/Fl_Shared_Image.cxx +++ b/src/Fl_Shared_Image.cxx @@ -227,7 +227,7 @@ Fl_Shared_Image::reload() { fread(header, 1, sizeof(header), fp); fclose(fp); } else { - memset(header, 0, sizeof(header)); + return; } // Load the image as appropriate...