diff options
Diffstat (limited to 'source4/torture/ui.c')
-rw-r--r-- | source4/torture/ui.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 67442f1df1..95d95937ed 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -387,7 +387,12 @@ const char *torture_setting_string(struct torture_context *test, const char *name, const char *default_value) { - const char *ret = lp_parm_string(test->lp_ctx, NULL, "torture", name); + const char *ret; + + SMB_ASSERT(test != NULL); + SMB_ASSERT(test->lp_ctx != NULL); + + ret = lp_parm_string(test->lp_ctx, NULL, "torture", name); if (ret == NULL) return default_value; |