summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-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