mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
Fix slapi_valueset_count() for no value case
This commit is contained in:
parent
8c674299bf
commit
cd18c6cb4d
1 changed files with 3 additions and 0 deletions
|
|
@ -2532,6 +2532,9 @@ int slapi_valueset_count( const Slapi_ValueSet *vs )
|
|||
|
||||
vp = *vs;
|
||||
|
||||
if ( vp == NULL )
|
||||
return 0;
|
||||
|
||||
for ( i = 0; vp[i].bv_val != NULL; i++ )
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue