summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-10 07:42:55 +0200
committerVolker Lendecke <vl@samba.org>2009-05-10 07:43:24 +0200
commit831b73ec82717c3c73ea1250f9c94228d251c1ec (patch)
treecfa9dbd39c59462c35ebd445f30c899be14e3669
parent46dea8c24750b98ca589777904cc05e4e3e92d71 (diff)
downloadsamba-831b73ec82717c3c73ea1250f9c94228d251c1ec.tar.gz
samba-831b73ec82717c3c73ea1250f9c94228d251c1ec.tar.bz2
samba-831b73ec82717c3c73ea1250f9c94228d251c1ec.zip
Fix an unitialized variable warning
-rw-r--r--libcli/named_pipe_auth/npa_tstream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcli/named_pipe_auth/npa_tstream.c b/libcli/named_pipe_auth/npa_tstream.c
index 57e841860c..fdb55c7e82 100644
--- a/libcli/named_pipe_auth/npa_tstream.c
+++ b/libcli/named_pipe_auth/npa_tstream.c
@@ -458,6 +458,9 @@ static ssize_t tstream_npa_pending_bytes(struct tstream_context *stream)
case FILE_TYPE_MESSAGE_MODE_PIPE:
ret = npas->pending.iov_len;
break;
+
+ default:
+ ret = -1;
}
return ret;