Commit 43cdce02 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 96c602cc
......@@ -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++)
{
......
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