[ekiga] Made a runtime warning go away in the evolution code



commit 34e3642c7cc5699e218935f98a757509c463a145
Author: Julien Puydt <jpuydt gnome org>
Date:   Thu Apr 30 14:25:16 2009 +0200

    Made a runtime warning go away in the evolution code
---
 .../components/evolution/evolution-contact.cpp     |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/engine/components/evolution/evolution-contact.cpp b/lib/engine/components/evolution/evolution-contact.cpp
index ef18fcf..6d80f13 100644
--- a/lib/engine/components/evolution/evolution-contact.cpp
+++ b/lib/engine/components/evolution/evolution-contact.cpp
@@ -312,7 +312,8 @@ Evolution::Contact::set_attribute_value (unsigned int attr_type,
     e_vcard_attribute_add_value (attribute, value.c_str ());
   } else { // empty valued : remove the attribute
 
-    e_vcard_remove_attribute (E_VCARD (econtact), attribute);
+    if (attribute != NULL)
+      e_vcard_remove_attribute (E_VCARD (econtact), attribute);
     attributes[attr_type] = NULL;
   }
 }



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