compiler warnings, possible use of unitialized data

This commit is contained in:
Ben Collins 2000-09-15 02:45:53 +00:00
parent 0243c4b0da
commit d3805f1980

View File

@ -259,10 +259,10 @@ do_search( LDAP *ld, char *buf )
{ {
char *dn, *rdn; char *dn, *rdn;
char **title; char **title;
int rc, matches, i, ufn; int rc = 0, matches = 0, i, ufn;
struct timeval tv; struct timeval tv;
LDAPFiltDesc *fd; LDAPFiltDesc *fd;
LDAPFiltInfo *fi; LDAPFiltInfo *fi = NULL;
LDAPMessage *result, *e; LDAPMessage *result, *e;
static char *attrs[] = { "cn", "title", "objectClass", "joinable", static char *attrs[] = { "cn", "title", "objectClass", "joinable",
#ifdef FINGER_SORT_ATTR #ifdef FINGER_SORT_ATTR