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 02c2f84b16c3bdd6bc8e90e60920792f61d92e66..02030de8cc548fa43d7591c26888951e550939c3 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 764b6059c6ae021f652dec600c55b876cea6321d..e6783de0694ada5dcdcbdcdd79087cf364c3537f 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)