From e600debafb7dd4320c254d504347827eb6745406 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Oct 1998 18:32:34 +0000 Subject: Added clear-out-structure fix for make_unistr2. Jeremy. (This used to be commit 2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828) --- source3/rpc_parse/parse_misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index 4cb606688d..0f242c4738 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/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; -- cgit