remove unnened and wrong instructions
authorSimo Sorce <idra@samba.org>
Mon, 7 Apr 2003 18:05:35 +0000 (18:05 +0000)
committerSimo Sorce <idra@samba.org>
Mon, 7 Apr 2003 18:05:35 +0000 (18:05 +0000)
(This used to be commit 671579874e51b28ffdfc094cdf34a0090567e0cc)

source3/modules/vfs_recycle.c

index 100db69cb6bca8259eaa853cade91a696c90baff..18056fe7966e7214460904ada22b04dce01fa4ea 100644 (file)
@@ -521,7 +521,6 @@ static int recycle_unlink(connection_struct *conn, const char *file_name)
        /* extract filename and path */
        path_name = (char *)malloc(PATH_MAX);
        ALLOC_CHECK(path_name, done);
-       *path_name = '\0';
        safe_strcpy(path_name, file_name, PATH_MAX - 1);
        base = strrchr(path_name, '/');
        if (base == NULL) {
@@ -555,7 +554,6 @@ static int recycle_unlink(connection_struct *conn, const char *file_name)
        temp_name = (char *)malloc(PATH_MAX);
        ALLOC_CHECK(temp_name, done);
        safe_strcpy(temp_name, recbin->repository, PATH_MAX - 1);
-       *temp_name = '\0';
        
        /* see if we need to recreate the original directory structure in the recycle bin */
        if (recbin->keep_dir_tree == True) {