Use g_slice_new0, to fix "conditional jump or move depends on
authorChristian Persch <chpe@gnome.org>
Thu, 20 Dec 2007 14:20:31 +0000 (14:20 +0000)
committerChristian Persch <chpe@src.gnome.org>
Thu, 20 Dec 2007 14:20:31 +0000 (14:20 +0000)
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

ChangeLog
glib/gchecksum.c

index 02c2f84..02030de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 764b605..e6783de 100644 (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)