Commit 32d063d9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed parameter check, NULL is valid for an empty palette. Fixes bug

2005-03-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c (ico_create_palette): fixed parameter
	check, NULL is valid for an empty palette. Fixes bug #170812.
parent 0c2447d1
2005-03-21 Sven Neumann <sven@gimp.org>
* plug-ins/winicon/icosave.c (ico_create_palette): fixed parameter
check, NULL is valid for an empty palette. Fixes bug #170812.
2005-03-21 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-convert.c (gimp_image_convert): added missing
......
......@@ -354,7 +354,7 @@ ico_create_palette(guchar *cmap,
guchar *palette;
gint i;
g_return_val_if_fail (cmap != NULL, NULL);
g_return_val_if_fail (cmap != NULL || num_colors_used == 0, NULL);
g_return_val_if_fail (num_colors_used <= num_colors, NULL);
palette = g_new0 (guchar, num_colors * 4);
......
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