char *type )
{
#if defined(LDAP_SLAPI)
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
if ( slap_str2ad( type, &ad, &text ) != LDAP_SUCCESS ) {
struct berval **vals )
{
#if defined(LDAP_SLAPI)
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
BerVarray bv;
int rc;
Slapi_Attr **attr )
{
#if defined(LDAP_SLAPI)
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
int rc;
{
#ifdef LDAP_SLAPI
const char *text;
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
if( slap_str2ad( type, &ad, &text ) != LDAP_SUCCESS ) {
return NULL;
int slapi_attr_type_cmp( const char *t1, const char *t2, int opt )
{
#ifdef LDAP_SLAPI
- AttributeDescription *a1;
- AttributeDescription *a2;
+ AttributeDescription *a1 = NULL;
+ AttributeDescription *a2 = NULL;
const char *text;
int ret;
char *slapi_attr_syntax_normalize( const char *s )
{
#ifdef LDAP_SLAPI
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
if ( slap_str2ad( s, &ad, &text ) != LDAP_SUCCESS ) {
int slapi_x_attrset_find( Slapi_AttrSet *as, const char *type, Slapi_Attr **attr )
{
#ifdef LDAP_SLAPI
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
if ( as == NULL || *as == NULL ) {
int slapi_x_attrset_merge( Slapi_AttrSet *as, const char *type, Slapi_ValueSet *vals )
{
#ifdef LDAP_SLAPI
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
Slapi_AttrSet *a;
const char *text;
int slapi_x_attrset_delete( Slapi_AttrSet *as, const char *type )
{
#ifdef LDAP_SLAPI
- AttributeDescription *ad;
+ AttributeDescription *ad = NULL;
const char *text;
if ( as == NULL ) {