Commit ed2bbc43 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer
Browse files

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
parent bb30fa5d
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,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment