[ekiga] Made a runtime warning go away in the evolution code
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga] Made a runtime warning go away in the evolution code
- Date: Thu, 30 Apr 2009 08:25:33 -0400 (EDT)
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]