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:
Sven Neumann 2007-11-15 12:19:13 +00:00 committed by Sven Neumann
parent b79096eda5
commit 0ed77b2152
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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);