Use g_slice_new0, to fix "conditional jump or move depends on

2007-12-20  Christian Persch  <chpe@gnome.org>

	* glib/gchecksum.c: (g_checksum_new): Use g_slice_new0, to fix
	"conditional jump or move depends on uninitialised value(s)" error
	from valgrind. Bug #504527.

svn path=/trunk/; revision=6174
This commit is contained in:
Christian Persch 2007-12-20 14:20:31 +00:00 committed by Christian Persch
parent f9574cc695
commit fc23e6ffac
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-12-20 Christian Persch <chpe@gnome.org>
* glib/gchecksum.c: (g_checksum_new): Use g_slice_new0, to fix
"conditional jump or move depends on uninitialised value(s)" error
from valgrind. Bug #504527.
2007-12-20 15:17:04 Tim Janik <timj@imendio.com>
* Makefile.decl: generate HTML reports for test-report perf-report full-report.

View File

@ -1112,7 +1112,7 @@ g_checksum_new (GChecksumType checksum_type)
g_return_val_if_fail (IS_VALID_TYPE (checksum_type), NULL);
checksum = g_slice_new (GChecksum);
checksum = g_slice_new0 (GChecksum);
checksum->type = checksum_type;
switch (checksum_type)