mirror of https://github.com/GNOME/gimp.git
added sanity checks.
2007-11-15 Sven Neumann <sven@gimp.org> * app/core/gimpcurve-save.c: added sanity checks. svn path=/trunk/; revision=24162
This commit is contained in:
parent
b79096eda5
commit
0ed77b2152
|
@ -1,3 +1,7 @@
|
|||
2007-11-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpcurve-save.c: added sanity checks.
|
||||
|
||||
2007-11-15 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/Makefile.am
|
||||
|
|
|
@ -37,9 +37,14 @@ gboolean
|
|||
gimp_curve_save (GimpData *data,
|
||||
GError **error)
|
||||
{
|
||||
GimpCurve *curve = GIMP_CURVE (data);
|
||||
GimpCurve *curve;
|
||||
FILE *file;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_CURVE (data), FALSE);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
|
||||
curve = GIMP_CURVE (data);
|
||||
|
||||
file = g_fopen (data->filename, "wb");
|
||||
|
||||
if (! file)
|
||||
|
@ -51,7 +56,7 @@ gimp_curve_save (GimpData *data,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* write curve */
|
||||
/* FIXME: write curve */
|
||||
|
||||
fclose (file);
|
||||
|
||||
|
|
Loading…
Reference in New Issue