]> git.sur5r.net Git - openldap/commitdiff
add null berval initializer (should replace tons of { 0, NULL})
authorPierangelo Masarati <ando@openldap.org>
Thu, 29 Aug 2002 10:42:13 +0000 (10:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 29 Aug 2002 10:42:13 +0000 (10:42 +0000)
include/lber_pvt.h

index 6fd8eb2c6bc88542a7c0348670ec2bd69e536364..ba77229bb757acb9e13a344d06307cbbe8c0c9c6 100644 (file)
@@ -86,7 +86,8 @@ ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));
 #define ber_bvchr(bv,c) \
        memchr( (bv)->bv_val, (c), (bv)->bv_len )
 
-#define BER_BVC(x) { sizeof( (x) ) - 1, (x) }
+#define BER_BVC(x)     { sizeof( (x) ) - 1, (x) }
+#define BER_BVNULL     { 0L, NULL }
 
 LDAP_END_DECL