mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
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:
parent
f9574cc695
commit
fc23e6ffac
@ -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>
|
2007-12-20 15:17:04 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* Makefile.decl: generate HTML reports for test-report perf-report full-report.
|
* Makefile.decl: generate HTML reports for test-report perf-report full-report.
|
||||||
|
@ -1112,7 +1112,7 @@ g_checksum_new (GChecksumType checksum_type)
|
|||||||
|
|
||||||
g_return_val_if_fail (IS_VALID_TYPE (checksum_type), NULL);
|
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;
|
checksum->type = checksum_type;
|
||||||
|
|
||||||
switch (checksum_type)
|
switch (checksum_type)
|
||||||
|
Loading…
Reference in New Issue
Block a user