balsa r7875 - branches/mailbox-gsequence/libbalsa



Author: PeterB
Date: Thu Feb 28 03:03:20 2008
New Revision: 7875
URL: http://svn.gnome.org/viewvc/balsa?rev=7875&view=rev

Log:
port one more change from trunk

Modified:
   branches/mailbox-gsequence/libbalsa/filter-funcs.c

Modified: branches/mailbox-gsequence/libbalsa/filter-funcs.c
==============================================================================
--- branches/mailbox-gsequence/libbalsa/filter-funcs.c	(original)
+++ branches/mailbox-gsequence/libbalsa/filter-funcs.c	Thu Feb 28 03:03:20 2008
@@ -487,6 +487,13 @@
 libbalsa_condition_compare(LibBalsaCondition *c1,LibBalsaCondition *c2)
 {
     gboolean res = FALSE;
+
+    if (c1 == c2)
+        return TRUE;
+
+    if (c1 == NULL || c2 == NULL)
+        return FALSE;
+
     switch (c1->type) {
     case CONDITION_STRING:
         res = (c2->type == CONDITION_STRING ||



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