]> git.sur5r.net Git - openldap/commitdiff
Silence warning (missing braces ininitializer)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Aug 2009 18:58:28 +0000 (18:58 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 19 Aug 2009 18:58:28 +0000 (18:58 +0000)
servers/slapd/back-ldap/bind.c
servers/slapd/back-meta/conn.c
servers/slapd/back-meta/unbind.c

index d44a795890b14758163c0da01bb8e0f66561239f..3790e60837e4e836352d50c109afa4420ac57a95 100644 (file)
@@ -783,7 +783,7 @@ ldap_back_getconn(
 {
        ldapinfo_t      *li = (ldapinfo_t *)op->o_bd->be_private;
        ldapconn_t      *lc = NULL,
-                       lc_curr = { 0 };
+                       lc_curr = {{ 0 }};
        int             refcnt = 1,
                        lookupconn = !( sendok & LDAP_BACK_BINDING );
 
index a9b36baf2a0811f688c8ec3c198373839e475946..ab7d77360ca322b1473c3e13417962c4fffb6c93 100644 (file)
@@ -1024,7 +1024,7 @@ meta_back_getconn(
 {
        metainfo_t      *mi = ( metainfo_t * )op->o_bd->be_private;
        metaconn_t      *mc = NULL,
-                       mc_curr = { 0 };
+                       mc_curr = {{ 0 }};
        int             cached = META_TARGET_NONE,
                        i = META_TARGET_NONE,
                        err = LDAP_SUCCESS,
index 50eff2d4996ab1956b8d104abd055d4ea920dd5e..8beafaea92ee450040381b69dafa1112df091477 100644 (file)
@@ -39,7 +39,7 @@ meta_back_conn_destroy(
 {
        metainfo_t      *mi = ( metainfo_t * )be->be_private;
        metaconn_t      *mc,
-                       mc_curr = { 0 };
+                       mc_curr = {{ 0 }};
        int             i;