]> git.sur5r.net Git - openldap/commitdiff
matched needs to be initialized to NULL as we may never
authorKurt Zeilenga <kurt@openldap.org>
Mon, 28 Dec 1998 16:41:39 +0000 (16:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 28 Dec 1998 16:41:39 +0000 (16:41 +0000)
make it to dn2entry_r().

servers/slapd/back-ldbm/search.c

index 6ecf5b4abe5b02cdca58ee9f3fe51151dfdcad5f..438397f441d8dfb5dd3095036c39c350842bdd02 100644 (file)
@@ -49,7 +49,7 @@ ldbm_back_search(
        ID              id;
        Entry           *e;
        Attribute       *ref;
-       char            *matched;
+       char            *matched = NULL;
        int             rmaxsize, nrefs;
        char            *rbuf, *rcur, *r;
        int             nentries = 0;