--- libdb4_drv.c	Fri Mar 19 18:50:15 2004
+++ libdb4_drv.c+pasky	Fri May 28 18:20:30 2004
@@ -958,13 +958,13 @@
       /* push a new directory */
       if (st.st_mode & S_IFDIR)
       {
-        dir = opendir (filename);
-        if (dir == NULL)
+        DIR *ndir = opendir (filename);
+        if (ndir == NULL)
           continue;
         strlcat (path, "/", sizeof (path));
         strlcat (path, entry->d_name, sizeof (path));
-        nt_add (s->dir_handles, (void *) dir);
-      return _ds_get_nextuser (CTX);
+        nt_add (s->dir_handles, (void *) ndir);
+        return _ds_get_nextuser (CTX);
       }
       else if (!strncmp
                  (entry->d_name + strlen (entry->d_name) - 5, ".dict", 5))
