Initialize the colormap to zero. (#171762, David Costanzo)

2005-04-07  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c (DecodeColormap): Initialize the colormap to
	zero.  (#171762, David Costanzo)
This commit is contained in:
Matthias Clasen 2005-04-07 05:44:41 +00:00 committed by Matthias Clasen
parent 96c602cc0e
commit 43cdce02c7

View File

@ -462,7 +462,7 @@ static gboolean DecodeColormap (guchar *buff,
return TRUE;
}
State->Colormap = g_malloc ((1 << State->Header.depth) * sizeof (*State->Colormap));
State->Colormap = g_malloc0 ((1 << State->Header.depth) * sizeof (*State->Colormap));
for (i = 0; i < State->Header.n_colors; i++)
{