]> git.sur5r.net Git - openldap/commitdiff
Reverse ber_strccmp assertion order to avoid ""[1] problems
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 Jan 2002 19:31:25 +0000 (19:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 Jan 2002 19:31:25 +0000 (19:31 +0000)
include/lber_pvt.h

index 454499d49ed1e7fd86084e08df79b76397d9da44..d22c21b4abef8e3453fe25dac6981ac71a1fbdfc 100644 (file)
@@ -81,7 +81,7 @@ ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));
        ( (v1)->bv_len == 1 && (v1)->bv_val[0] == (c) )
 
 #define ber_strccmp(s,c) \
-       ((s)[1] == '\0' && (s)[0] == (c) )
+       ( (s)[0] == (c) && (s)[1] == '\0' )
 
 LDAP_END_DECL