]> git.sur5r.net Git - openldap/commitdiff
ITS#8001 fix ldap_sync_initialize
authorHoward Chu <hyc@openldap.org>
Wed, 10 Dec 2014 22:58:33 +0000 (22:58 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 10 Dec 2014 22:58:33 +0000 (22:58 +0000)
libraries/libldap/ldap_sync.c

index e573c3b52be2c5db858d5c79539c066b43d63eeb..469bff803a17bebb3b69e9f21351cdc1befe2f1a 100644 (file)
@@ -64,10 +64,8 @@ ldap_sync_initialize( ldap_sync_t *ls_in )
                if ( ls == NULL ) {
                        return NULL;
                }
-
-       } else {
-               memset( ls, 0, sizeof( ldap_sync_t ) );
        }
+       memset( ls, 0, sizeof( ldap_sync_t ) );
 
        ls->ls_scope = LDAP_SCOPE_SUBTREE;
        ls->ls_timeout = -1;