mirror of https://github.com/fltk/fltk
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
This commit is contained in:
parent
e6bbd2d525
commit
cbd3bd40a9
|
@ -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...
|
||||
|
|
Loading…
Reference in New Issue