]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/compare.c
allow backwards compatibility for 'T' option (single char)
[openldap] / servers / slapd / compare.c
index 51e016d18a0d52c2d8cd4e9bf60ccd20fb33784d..9c483a7a677d71e6e39d8a662e61616d8d4d88a9 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Copyright 1998-2004 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,10 +47,10 @@ do_compare(
 )
 {
        Entry *entry = NULL;
-       struct berval dn = { 0, NULL };
-       struct berval desc = { 0, NULL };
-       struct berval value = { 0, NULL };
-       AttributeAssertion ava = { NULL, { 0, NULL } };
+       struct berval dn = BER_BVNULL;
+       struct berval desc = BER_BVNULL;
+       struct berval value = BER_BVNULL;
+       AttributeAssertion ava = { NULL, BER_BVNULL };
        int manageDSAit;
 
        ava.aa_desc = NULL;