diff options
Diffstat (limited to 'source4/torture/util.c')
-rw-r--r-- | source4/torture/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/util.c b/source4/torture/util.c index f6287e34d6..b8bfa5f51f 100644 --- a/source4/torture/util.c +++ b/source4/torture/util.c @@ -28,9 +28,10 @@ create a temporary directory. */ _PUBLIC_ NTSTATUS torture_temp_dir(struct torture_context *tctx, - const char *prefix, - char **tempdir) + const char *prefix, + char **tempdir) { + SMB_ASSERT(tctx->outputdir != NULL); *tempdir = talloc_asprintf(tctx, "%s/%s.XXXXXX", tctx->outputdir, prefix); if (mkdtemp(*tempdir) == NULL) |