summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-28 18:32:34 +0000
committerJeremy Allison <jra@samba.org>1998-10-28 18:32:34 +0000
commit2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828 (patch)
treeb8948befcdd0a56820af7186a24ef0f762297e18
parent9cade656e2db743cb6ee67bbb8b0f50e8e4c39f9 (diff)
downloadsamba-2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828.tar.gz
Added clear-out-structure fix for make_unistr2.
Jeremy.
-rw-r--r--source/rpc_parse/parse_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index 4cb606688d4..0f242c47384 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/rpc_parse/parse_misc.c
@@ -475,6 +475,8 @@ creates a UNISTR2 structure.
********************************************************************/
void make_unistr2(UNISTR2 *str, char *buf, int len)
{
+ ZERO_STRUCTP(str);
+
/* set up string lengths. */
str->uni_max_len = len;
str->undoc = 0;