From b0eec881310dddd23b0053399263972307448da7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 8 Dec 2007 23:32:01 +0100 Subject: r26344: Fix memory access. (This used to be commit 966248108f97d237b41ff2d14ec1e592d61d8db3) --- source4/utils/testparm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/utils') diff --git a/source4/utils/testparm.c b/source4/utils/testparm.c index 381d2b3b598..bd4bc79240e 100644 --- a/source4/utils/testparm.c +++ b/source4/utils/testparm.c @@ -127,7 +127,7 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c fflush(stdout); getc(stdin); } - if (section_name || parameter_name) { + if (section_name != NULL || parameter_name != NULL) { struct loadparm_service *service = NULL; if (!section_name) { section_name = GLOBAL_NAME; @@ -141,7 +141,7 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c if (!parameter_name) { lp_dump_one(stdout, show_defaults, service); } else { - ret = !lp_dump_a_parameter(lp_ctx, s, parameter_name, stdout, (service == NULL)); + ret = !lp_dump_a_parameter(lp_ctx, service, parameter_name, stdout, (service == NULL)); } } else { lp_dump(lp_ctx, stdout, show_defaults, lp_numservices(lp_ctx)); -- cgit v1.2.1