Don't set unsigned del_heir_name_len to -1 -- it's only used
authorWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 21:03:50 +0000 (21:03 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 21:03:50 +0000 (21:03 +0000)
if in_del_hier is non-zero, so it doesn't need to take on an
invalid value.

flist.c

diff --git a/flist.c b/flist.c
index bc247a88703695ccf1aeeef3ef2b296ef9b44959..5fcd54dd1a93cbbf2a9b50e773ec3a12fe7c40e8 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -531,7 +531,7 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags,
        static gid_t gid;
        static char lastname[MAXPATHLEN], *lastdir;
        static int lastdir_depth, lastdir_len = -1;
-       static unsigned int del_heir_name_len = -1;
+       static unsigned int del_heir_name_len = 0;
        static int in_del_hier = 0;
        char thisname[MAXPATHLEN];
        unsigned int l1 = 0, l2 = 0;
@@ -546,7 +546,7 @@ void receive_file_entry(struct file_struct **fptr, unsigned short flags,
                rdev_major = 0;
                uid = 0, gid = 0;
                *lastname = '\0';
-               del_heir_name_len = lastdir_len = -1;
+               lastdir_len = -1;
                in_del_hier = 0;
                return;
        }