fixed uninitialised variable bug
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Sep 2008 22:40:55 +0000 (15:40 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 25 Sep 2008 01:10:22 +0000 (18:10 -0700)
source4/libcli/clideltree.c

index d59a03f194c8e05d2fed5c70005e7e7dd2dac988..28563d918e2021eac4310df5b1bba96cd6f64122 100644 (file)
@@ -91,6 +91,7 @@ int smbcli_deltree(struct smbcli_tree *tree, const char *dname)
        dstate.failed = false;
 
        /* it might be a file */
+       status = smbcli_unlink(tree, dname);
        if (NT_STATUS_IS_OK(smbcli_unlink(tree, dname))) {
                return 1;
        }