mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
plug-ins: actually use the return value of fread() in gimppressionist/presets
This commit is contained in:
parent
9092c79ca2
commit
1b34c9220c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue