From bd64688c6aca6512efd0bd7d95000579beea3119 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 23 Dec 2008 22:57:11 +0100 Subject: Fix more compiler warnings in various places. --- source4/ntvfs/posix/pvfs_resolve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index f08de72a38..43547c275b 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -190,16 +190,16 @@ static NTSTATUS parse_stream_name(struct smb_iconv_convenience *ic, struct pvfs_filename *name, const char *s) { - char *p; + char *p, *stream_name; if (s[1] == '\0') { return NT_STATUS_OBJECT_NAME_INVALID; } - name->stream_name = talloc_strdup(name, s+1); + name->stream_name = stream_name = talloc_strdup(name, s+1); if (name->stream_name == NULL) { return NT_STATUS_NO_MEMORY; } - p = name->stream_name; + p = stream_name; while (*p) { size_t c_size; -- cgit