[libgdata] contacts: Remove redundant copypasta



commit 5090ecd40d21c221ee8fa26d392c2e4ddecdd773
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Sun Oct 4 12:07:54 2015 +0100

    contacts: Remove redundant copypasta
    
    This is left over from manually expanding one of the parser functions
    inline here.
    
    Coverity CID: 131018

 gdata/services/contacts/gdata-contacts-contact.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/contacts/gdata-contacts-contact.c 
b/gdata/services/contacts/gdata-contacts-contact.c
index ae0a000..8031d88 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -842,7 +842,7 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
 
                        /* Parse the e-mail address. */
                        _parsable = _gdata_parsable_new_from_xml_node (GDATA_TYPE_GD_EMAIL_ADDRESS, 
node->doc, node, NULL, error);
-                       if (P_REQUIRED & P_REQUIRED && _parsable == NULL) {
+                       if (_parsable == NULL) {
                                /* The error has already been set by _gdata_parsable_new_from_xml_node() */
                                success = FALSE;
                                return TRUE;


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