aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/syldap.c4
-rw-r--r--src/vcard.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/syldap.c b/src/syldap.c
index dd46b5ca..6c609ad0 100644
--- a/src/syldap.c
+++ b/src/syldap.c
@@ -891,8 +891,8 @@ GList *syldap_read_basedn( SyldapServer *ldapServer ) {
gchar **vals;
struct timeval timeout;
- ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer == NULL ) return baseDN;
+ ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer->hostName == NULL ) return baseDN;
if( ldapServer->port < 1 ) return baseDN;
@@ -1041,8 +1041,8 @@ gboolean syldap_test_connect( SyldapServer *ldapServer ) {
gboolean retVal = FALSE;
LDAP *ld;
- ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer == NULL ) return retVal;
+ ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer->hostName == NULL ) return retVal;
if( ldapServer->port < 1 ) return retVal;
ldapServer->retVal = MGU_LDAP_INIT;
diff --git a/src/vcard.c b/src/vcard.c
index a078607b..dd7219a6 100644
--- a/src/vcard.c
+++ b/src/vcard.c
@@ -384,8 +384,8 @@ static void vcard_build_items( VCardFile *cardFile, GSList *listName, GSList *li
if( *str != '\0' ) {
ItemEMail *email = addritem_create_item_email();
addritem_email_set_address( email, str );
- str = nodeRemarks->data;
if( nodeRemarks ) {
+ str = nodeRemarks->data;
if( str ) {
if( g_ascii_strcasecmp( str, "internet" ) != 0 ) {
if( *str != '\0' ) addritem_email_set_remarks( email, str );