]> git.sur5r.net Git - openldap/commitdiff
compiler warnings, possible use of unitialized data
authorBen Collins <bcollins@openldap.org>
Fri, 15 Sep 2000 02:45:53 +0000 (02:45 +0000)
committerBen Collins <bcollins@openldap.org>
Fri, 15 Sep 2000 02:45:53 +0000 (02:45 +0000)
clients/finger/main.c

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