From: Kurt Zeilenga Date: Wed, 16 Jan 2002 19:31:25 +0000 (+0000) Subject: Reverse ber_strccmp assertion order to avoid ""[1] problems X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b6811d7598be2a514cd9bea8af607654a5d1a6a;p=openldap Reverse ber_strccmp assertion order to avoid ""[1] problems --- diff --git a/include/lber_pvt.h b/include/lber_pvt.h index 454499d49e..d22c21b4ab 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -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