Oops. Don't break the build..
authorJeremy Allison <jra@samba.org>
Wed, 7 Oct 2009 22:43:43 +0000 (15:43 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:05 +0000 (11:39 +0100)
Jeremy.
(cherry picked from commit 879c3b8888b9a77136777b269ad730d4b3ca223b)

source3/smbd/files.c

index f7509d75fde0c35bb3dd4721cfeb52671566930c..2bc5ba6816e0a75ed431c6239652c765364ab654 100644 (file)
@@ -405,14 +405,13 @@ bool file_find_subpath(files_struct *dir_fsp)
        files_struct *fsp;
        size_t dlen;
        char *d_fullname = NULL;
-       bool ret = false;
 
        d_fullname = talloc_asprintf(talloc_tos(), "%s/%s",
                                     dir_fsp->conn->connectpath,
                                     dir_fsp->fsp_name->base_name);
 
        if (!d_fullname) {
-               goto out;
+               return false;
        }
 
        dlen = strlen(d_fullname);
@@ -443,7 +442,7 @@ bool file_find_subpath(files_struct *dir_fsp)
        }
 
        TALLOC_FREE(d_fullname);
-       return ret;
+       return false;
 }
 
 /****************************************************************************