char **val;
char last;
+ memset( &data, 0 , sizeof( data ));
+
if ( verbose ) {
printf( "Generating new centroids for..." );
fflush( stdout );
/* for each value */
for ( j = 0; val[j] != NULL; j++ ) {
+
+ memset( &key, 0 , sizeof( key ));
+
/* normalize the value */
for ( s = val[j]; *s; s++ ) {
if ( isascii( *s ) ) {
fflush( stdout );
}
+ memset( &okey, 0, sizeof( okey ));
+ memset( &nkey, 0, sizeof( nkey ));
+ memset( &olast, 0, sizeof( olast ));
+ memset( &nlast, 0, sizeof( nlast ));
+ memset( &lastkey, 0, sizeof( lastkey ));
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
if ( (mods = (LDAPMod **) malloc( sizeof(LDAPMod *) * 4 )) == NULL ||
(mods[0] = (LDAPMod *) malloc( sizeof(LDAPMod) )) == NULL ||
(mods[1] = (LDAPMod *) malloc( sizeof(LDAPMod) )) == NULL ||
fflush( stdout );
}
+ memset( &key, 0, sizeof( key ));
+ memset( &lastkey, 0, sizeof( lastkey ));
+
if ( (mods = (LDAPMod **) malloc( sizeof(LDAPMod *) * 3 )) == NULL ||
(mods[0] = (LDAPMod *) malloc( sizeof(LDAPMod) )) == NULL ||
(mods[1] = (LDAPMod *) malloc( sizeof(LDAPMod) )) == NULL ||
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
+
+ memset( &key, 0, sizeof( key ));
+ memset( &last, 0, sizeof( last ));
+ memset( &data, 0, sizeof( data ));
#endif
if ( argc < 2 || argc > 3 || ( argc == 3 && strcmp( argv[1], "-n" )
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
+
+ memset( &savekey, 0, sizeof( savekey ));
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+ memset( &last, 0, sizeof( last ));
#endif
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
int vlen;
Datum key, data;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len;
char buf2[20];
Datum key, data;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len;
int vlen;
Datum key, data;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len, idlen;
int vlen, indexmask, syntaxmask;
Datum key, data;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len;
Datum key, data;
char *w;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
/* update value count */
vcount++;
vsize += bvals[j]->bv_len;
{
Datum key, data;
+ memset( &key, 0, sizeof( key ));
+ memset( &data, 0, sizeof( data ));
+
key.dptr = s;
key.dsize = strlen( key.dptr ) + 1;
data.dptr = "";