mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +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;
|
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++)
|
for (i = 0; i < State->Header.n_colors; i++)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user