mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
add g_return_if_fail (checksum != NULL)
2008-09-02 Michael Natterer <mitch@imendio.com> * glib/gchecksum.c (g_checksum_reset): add g_return_if_fail (checksum != NULL) svn path=/trunk/; revision=7423
This commit is contained in:
parent
bb30fa5dff
commit
ed2bbc43cc
@ -1,3 +1,8 @@
|
||||
2008-09-02 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* glib/gchecksum.c (g_checksum_reset): add
|
||||
g_return_if_fail (checksum != NULL)
|
||||
|
||||
2008-09-01 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
Bug 550040 - Move GString, rand and printf tests to the unit test
|
||||
|
@ -1130,9 +1130,11 @@ g_checksum_new (GChecksumType checksum_type)
|
||||
void
|
||||
g_checksum_reset (GChecksum *checksum)
|
||||
{
|
||||
g_return_if_fail (checksum != NULL);
|
||||
|
||||
g_free (checksum->digest_str);
|
||||
checksum->digest_str = NULL;
|
||||
|
||||
|
||||
switch (checksum->type)
|
||||
{
|
||||
case G_CHECKSUM_MD5:
|
||||
|
Loading…
Reference in New Issue
Block a user