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:
9cade65
)
Added clear-out-structure fix for make_unistr2.
author
Jeremy Allison
<jra@samba.org>
Wed, 28 Oct 1998 18:32:34 +0000
(18:32 +0000)
committer
Jeremy Allison
<jra@samba.org>
Wed, 28 Oct 1998 18:32:34 +0000
(18:32 +0000)
Jeremy.
source/rpc_parse/parse_misc.c
patch
|
blob
|
history
diff --git
a/source/rpc_parse/parse_misc.c
b/source/rpc_parse/parse_misc.c
index 4cb606688d4fb567241f937bf414dffc88b53ec0..0f242c47384a08cc6a60a0cae2991fe50160a077 100644
(file)
--- 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;