Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : embrace

Dir     : misc/embrace/src


Modified Files:
        mailbox.c 


Log Message:
don't refuse to use NULL as a property's value
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/mailbox.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- mailbox.c   7 Mar 2004 20:03:40 -0000       1.3
+++ mailbox.c   3 Apr 2004 14:50:14 -0000       1.4
@@ -1,5 +1,5 @@
 /*
- * $Id: mailbox.c,v 1.3 2004/03/07 20:03:40 tsauerbeck Exp $
+ * $Id: mailbox.c,v 1.4 2004/04/03 14:50:14 tsauerbeck Exp $
  *
  * Copyright (C) 2004 Embrace project.
  *
@@ -262,17 +262,14 @@
 
 void mailbox_property_set (MailBox *mb, char *key, void *data)
 {
-       void *old;
-
        assert (mb);
        assert (key);
-       assert (data);
 
        /* if there's already data stored with the same key,
         * remove that entry first.
         */
-       if (mb->properties && (old = evas_hash_find (mb->properties, key)))
-               mb->properties = evas_hash_del (mb->properties, key, old);
+       if (mb->properties && (evas_hash_find (mb->properties, key)))
+               mb->properties = evas_hash_del (mb->properties, key, NULL);
 
        mb->properties = evas_hash_add (mb->properties, key, data);
 }




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to