X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fcr.c;h=366246e1231b2c7d0787e455a1fc5c9e75d95ece;hb=d168b49464df8a034e244c6610721155aa6b42ba;hp=0dcf1484a8ab414642fff9655f6ceb51ae3464af;hpb=5d2ba11ad924cfe9be57d7d6a1e6a37e108bbe10;p=openldap diff --git a/servers/slapd/cr.c b/servers/slapd/cr.c index 0dcf1484a8..366246e123 100644 --- a/servers/slapd/cr.c +++ b/servers/slapd/cr.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -127,8 +127,8 @@ cr_insert( cir->cir_name.bv_len = strlen( scr->scr_oid ); cir->cir_cr = scr; - assert( cir->cir_name.bv_val ); - assert( cir->cir_cr ); + assert( cir->cir_name.bv_val != NULL ); + assert( cir->cir_cr != NULL ); if ( avl_insert( &cr_index, (caddr_t) cir, cr_index_cmp, avl_dup_error ) ) @@ -150,8 +150,8 @@ cr_insert( cir->cir_name.bv_len = strlen( *names ); cir->cir_cr = scr; - assert( cir->cir_name.bv_val ); - assert( cir->cir_cr ); + assert( cir->cir_name.bv_val != NULL ); + assert( cir->cir_cr != NULL ); if ( avl_insert( &cr_index, (caddr_t) cir, cr_index_cmp, avl_dup_error ) )