diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-04-07 05:44:41 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-04-07 05:44:41 +0000 |
commit | 43cdce02c7527df9c5d4de27db92ce15b200d202 (patch) | |
tree | cc4f16444b925575715169ada06c04a76850b5cd /gdk-pixbuf | |
parent | 96c602cc0eccc4ddd91ae60780b7685c1025733c (diff) | |
download | gtk+-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.c | 2 |
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++) { |