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:
Michael Natterer 2008-09-02 14:07:27 +00:00 committed by Michael Natterer
parent bb30fa5dff
commit ed2bbc43cc
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -1130,6 +1130,8 @@ 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;