From: Michael Natterer Date: Tue, 2 Sep 2008 14:07:27 +0000 (+0000) Subject: add g_return_if_fail (checksum != NULL) X-Git-Tag: GLIB_2_18_0~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed2bbc43ccf195c3e6745019213288efca82deb8;p=platform%2Fupstream%2Fglib.git add g_return_if_fail (checksum != NULL) 2008-09-02 Michael Natterer * glib/gchecksum.c (g_checksum_reset): add g_return_if_fail (checksum != NULL) svn path=/trunk/; revision=7423 --- diff --git a/ChangeLog b/ChangeLog index 8f7aefd..0508163 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-02 Michael Natterer + + * glib/gchecksum.c (g_checksum_reset): add + g_return_if_fail (checksum != NULL) + 2008-09-01 Paolo Borelli Bug 550040 - Move GString, rand and printf tests to the unit test diff --git a/glib/gchecksum.c b/glib/gchecksum.c index 245ebc0..41cc1f8 100644 --- a/glib/gchecksum.c +++ b/glib/gchecksum.c @@ -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: