plug-ins: actually use the return value of fread() in gimppressionist/presets

This commit is contained in:
Michael Natterer 2012-02-05 22:28:09 +01:00
parent 9092c79ca2
commit 1b34c9220c

View file

@ -253,7 +253,7 @@ load_old_preset (const gchar *fname)
len = fread (&pcvals, 1, sizeof (pcvals), f);
fclose (f);
return 0;
return (len != sizeof (pcvals)) ? -1 : 0;
}
static unsigned int