glib r7423 - in trunk: . glib



Author: mitch
Date: Tue Sep  2 14:07:27 2008
New Revision: 7423
URL: http://svn.gnome.org/viewvc/glib?rev=7423&view=rev

Log:
2008-09-02  Michael Natterer  <mitch imendio com>

	* glib/gchecksum.c (g_checksum_reset): add
	g_return_if_fail (checksum != NULL)



Modified:
   trunk/ChangeLog
   trunk/glib/gchecksum.c

Modified: trunk/glib/gchecksum.c
==============================================================================
--- trunk/glib/gchecksum.c	(original)
+++ trunk/glib/gchecksum.c	Tue Sep  2 14:07:27 2008
@@ -1130,9 +1130,11 @@
 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:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]