summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-04-07 05:44:41 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-04-07 05:44:41 +0000
commit43cdce02c7527df9c5d4de27db92ce15b200d202 (patch)
treecc4f16444b925575715169ada06c04a76850b5cd /gdk-pixbuf
parent96c602cc0eccc4ddd91ae60780b7685c1025733c (diff)
downloadgtk+-43cdce02c7527df9c5d4de27db92ce15b200d202.tar.gz
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)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/io-bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 4cdcc112c3..c754431fcf 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -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++)
{