Commit 0ed77b21 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added sanity checks.

2007-11-15  Sven Neumann  <sven@gimp.org>

	* app/core/gimpcurve-save.c: added sanity checks.


svn path=/trunk/; revision=24162
parent b79096ed
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment