diff options
author | Volker Lendecke <vl@samba.org> | 2008-01-20 15:09:53 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-01-20 15:29:58 +0100 |
commit | bf7f13c9a7aebd228d9ba4d45a69809b7a1a8d99 (patch) | |
tree | 72cca3b50a9c9accaffc0b31f4fe1ae4dc9f22e9 /source3/modules | |
parent | 896ec681816b38d85e3dfbb45e9df8993de42899 (diff) | |
download | samba-bf7f13c9a7aebd228d9ba4d45a69809b7a1a8d99.tar.gz samba-bf7f13c9a7aebd228d9ba4d45a69809b7a1a8d99.tar.bz2 samba-bf7f13c9a7aebd228d9ba4d45a69809b7a1a8d99.zip |
Fix valgrind errors
(This used to be commit d7e6ec2258350c564053371361c8f1d7d0f775b1)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_streams_xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index d0112a5d74..87bcf22fb3 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -121,7 +121,7 @@ static int streams_xattr_stat(vfs_handle_struct *handle, const char *fname, SMB_STRUCT_STAT *sbuf) { NTSTATUS status; - char *base, *sname; + char *base = NULL, *sname = NULL; int result = -1; char *xattr_name; @@ -132,7 +132,7 @@ static int streams_xattr_stat(vfs_handle_struct *handle, const char *fname, status = split_ntfs_stream_name(talloc_tos(), fname, &base, &sname); if (!NT_STATUS_IS_OK(status)) { errno = EINVAL; - goto fail; + return -1; } if (SMB_VFS_STAT(handle->conn, base, sbuf) == -1) { |