fix uninitialized pointer (ITS#1538)

This commit is contained in:
Pierangelo Masarati 2002-01-17 19:33:48 +00:00
parent d70f117b69
commit 861e9a66b5

View file

@ -37,7 +37,7 @@ do_search(
struct berval nbase = { 0, NULL };
struct berval fstr = { 0, NULL };
Filter *filter = NULL;
AttributeName *an;
AttributeName *an = NULL;
ber_len_t siz, off, i;
Backend *be;
int rc;
@ -327,7 +327,7 @@ return_results:;
if( fstr.bv_val != NULL) free( fstr.bv_val );
if( filter != NULL) filter_free( filter );
free(an);
if( an != NULL ) free( an );
return rc;
}