summaryrefslogtreecommitdiffstats
path: root/source/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-02 23:18:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:05 -0500
commit0b6f87d5e14da461bd2b1c3a4e6f47a69d2cd1c4 (patch)
treece2cd2ec0504f698a8a9af4b3526f8c76c8329cc /source/smbd/filename.c
parent8a8408a34089afb08f037b2652f4803399c21d8e (diff)
downloadsamba-0b6f87d5e14da461bd2b1c3a4e6f47a69d2cd1c4.tar.gz
samba-0b6f87d5e14da461bd2b1c3a4e6f47a69d2cd1c4.tar.xz
samba-0b6f87d5e14da461bd2b1c3a4e6f47a69d2cd1c4.zip
r7200: Don't use memset, use SET_STAT_INVALID (has the same effect).
Jeremy.
Diffstat (limited to 'source/smbd/filename.c')
-rw-r--r--source/smbd/filename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/filename.c b/source/smbd/filename.c
index 7191e757157..733001bc91d 100644
--- a/source/smbd/filename.c
+++ b/source/smbd/filename.c
@@ -92,7 +92,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
BOOL component_was_mangled = False;
BOOL name_has_wildcard = False;
- ZERO_STRUCTP(pst);
+ SET_STAT_INVALID(pst);
*dirpath = 0;
*bad_path = False;
@@ -258,7 +258,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
pstring rest;
/* Stat failed - ensure we don't use it. */
- ZERO_STRUCT(st);
+ SET_STAT_INVALID(st);
*rest = 0;
/*
@@ -346,7 +346,7 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen
if (SMB_VFS_STAT(conn,name, &st) == 0) {
*pst = st;
} else {
- ZERO_STRUCT(st);
+ SET_STAT_INVALID(st);
}
}
} /* end else */