summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 15:30:48 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-29 09:21:25 +0100
commit677f5246f16c7c2dd4b0006202b2c7ec9f8c3520 (patch)
treea3f64f5334213f309f17f04cc5d135b3d33a0677
parent17646071503f166eab31721edab9138141449db1 (diff)
downloadsamba-677f5246f16c7c2dd4b0006202b2c7ec9f8c3520.tar.gz
samba-677f5246f16c7c2dd4b0006202b2c7ec9f8c3520.tar.bz2
samba-677f5246f16c7c2dd4b0006202b2c7ec9f8c3520.zip
s4:libnet/py_net: ZERO_STRUCT() struct libnet_Join_member in py_net_join_member()
metze
-rw-r--r--source4/libnet/py_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c
index cf37ccc380..4754eb572b 100644
--- a/source4/libnet/py_net.c
+++ b/source4/libnet/py_net.c
@@ -51,6 +51,8 @@ static PyObject *py_net_join_member(py_net_Object *self, PyObject *args, PyObjec
TALLOC_CTX *mem_ctx;
const char *kwnames[] = { "domain_name", "netbios_name", "level", NULL };
+ ZERO_STRUCT(r);
+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ssi:Join", discard_const_p(char *, kwnames),
&r.in.domain_name, &r.in.netbios_name,
&_level)) {