mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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:
parent
96c602cc0e
commit
43cdce02c7
@ -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++)
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user