git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896ec68
)
Fix valgrind errors
author
Volker Lendecke
<vl@samba.org>
Sun, 20 Jan 2008 14:09:53 +0000
(15:09 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 20 Jan 2008 14:29:58 +0000
(15:29 +0100)
(This used to be commit
d7e6ec2258350c564053371361c8f1d7d0f775b1
)
source3/modules/vfs_streams_xattr.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_streams_xattr.c
b/source3/modules/vfs_streams_xattr.c
index d0112a5d740e13c81c2319c86616500e0f160108..87bcf22fb365db4b4e85bea74ff25e2587157e3f 100644
(file)
--- 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) {