]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap_sync.c
Happy New Year
[openldap] / libraries / libldap / ldap_sync.c
index 6f00711d81d3c1e6f1e8681be05695c4f54978fa..4018c6ce5cc97641b8dc24c4fafb429b76efeeac 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2006-2013 The OpenLDAP Foundation.
+ * Copyright 2006-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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;