From: Kurt Zeilenga Date: Tue, 17 Dec 2002 05:25:05 +0000 (+0000) Subject: Don't reeval expression X-Git-Tag: NO_SLAP_OP_BLOCKS~665 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75757a5c82fc6a9333807517705c99e090428142;p=openldap Don't reeval expression --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 5087e0418f..ba4692e83c 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -119,7 +119,7 @@ bdb_bt_compare( const DBT *curkey ) { - unsigned char *u, *c; + unsigned char x, *u, *c; int i; u = usrkey->data; @@ -131,9 +131,10 @@ bdb_bt_compare( for( i = sizeof(ID)-1; i >= 0; i--) #endif { - if( u[i] - c[i] ) - return u[i] - c[i]; + x = u[i] - c[i]; + if( x ) return x; } + return 0; }