don't attempt to save an image without image data

SVN revision: 8973
This commit is contained in:
Tilman Sauerbeck 2004-02-15 10:18:11 +00:00
parent e850bf67cc
commit 6edd0ecd3b
1 changed files with 3 additions and 0 deletions

View File

@ -254,6 +254,9 @@ save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity)
ImlibImageTag *tag;
int quality = 75, compression = 3, num_passes = 1, pass;
if (!im->data)
return 0;
f = fopen(im->real_file, "wb");
if (!f)
return 0;