r5843: Removed unused variable - pointed out by jason@ncac.gwu.edu in bugid #2460.
authorJeremy Allison <jra@samba.org>
Thu, 17 Mar 2005 01:02:30 +0000 (01:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:05 +0000 (10:56 -0500)
Jeremy.
(This used to be commit 1f988333ecaedfb21a8deee6eebb9bd4de91bfd6)

source3/smbd/dir.c

index d9fd382d5204729d3957cf5fce5323920fa9b73a..db16b8a6e00a5139613af835be4c89a7967336a4 100644 (file)
@@ -594,10 +594,8 @@ const char *dptr_ReadDirName(struct dptr_struct *dptr, long *poffset, SMB_STRUCT
 
 BOOL dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst)
 {
-       BOOL ret;
-
        ZERO_STRUCTP(pst);
-       while ((ret = SearchDir(dptr->dir_hnd, name, poffset)) == True) {
+       while (SearchDir(dptr->dir_hnd, name, poffset) == True) {
                if (is_visible_file(dptr->conn, dptr->path, name, pst, True)) {
                        return True;
                }