summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-09-05 03:06:26 +0000
committerAndrew Tridgell <tridge@samba.org>2002-09-05 03:06:26 +0000
commit58b5b6f4036c8d958a62b813b46e873c052a0327 (patch)
treeb55277e4c8669b7f5da5ae7348885a25aa051f2e
parent1974c5d92efe914a80339af75a2521b7141c97fe (diff)
downloadsamba-58b5b6f4036c8d958a62b813b46e873c052a0327.tar.gz
samba-58b5b6f4036c8d958a62b813b46e873c052a0327.tar.bz2
samba-58b5b6f4036c8d958a62b813b46e873c052a0327.zip
initial mem_ctx to NULL
patch from metze (This used to be commit a4351a3923fd87e1c54119d997b673fcac34601b)
-rw-r--r--source3/torture/samtest.c2
-rw-r--r--source3/torture/vfstest.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/samtest.c b/source3/torture/samtest.c
index 56b87dc257..490cc2cdf3 100644
--- a/source3/torture/samtest.c
+++ b/source3/torture/samtest.c
@@ -189,7 +189,7 @@ static NTSTATUS do_cmd(struct sam_context *sam, struct cmd_set *cmd_entry, char
{
char *p = cmd, **argv = NULL;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- TALLOC_CTX *mem_ctx;
+ TALLOC_CTX *mem_ctx = NULL;
pstring buf;
int argc = 0, i;
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 9f8062a02e..c68d2b04d2 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -264,7 +264,7 @@ static NTSTATUS do_cmd(struct vfs_state *vfs, struct cmd_set *cmd_entry, char *c
char *p = cmd, **argv = NULL;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
pstring buf;
- TALLOC_CTX *mem_ctx;
+ TALLOC_CTX *mem_ctx = NULL;
int argc = 0, i;
/* Count number of arguments first time through the loop then