initialize GimpRGB, just to be sure.

2007-10-27  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpscanner.c (gimp_scanner_parse_color):
	initialize GimpRGB, just to be sure.


svn path=/trunk/; revision=23975
This commit is contained in:
Sven Neumann 2007-10-27 20:13:17 +00:00 committed by Sven Neumann
parent cca6a3f1bd
commit 91d29f48b2
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-10-27 Sven Neumann <sven@gimp.org>
* libgimpconfig/gimpscanner.c (gimp_scanner_parse_color):
initialize GimpRGB, just to be sure.
2007-10-27 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-handlers.c: removed code that syncs

View File

@ -401,7 +401,7 @@ gimp_scanner_parse_color (GScanner *scanner,
guint scope_id;
guint old_scope_id;
GTokenType token;
GimpRGB color;
GimpRGB color = { 0.0, 0.0, 0.0, 1.0 };
scope_id = g_quark_from_static_string ("gimp_scanner_parse_color");
old_scope_id = g_scanner_set_scope (scanner, scope_id);
@ -432,7 +432,7 @@ gimp_scanner_parse_color (GScanner *scanner,
case G_TOKEN_SYMBOL:
{
gdouble col[4] = { 0.0, 0.0, 0.0, 1.0 };
gdouble col[4] = { 0.0, 0.0, 0.0, 1.0 };
gint n_channels = 4;
gboolean is_hsv = FALSE;
gint i;