diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-08 23:32:01 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:51 +0100 |
commit | b0eec881310dddd23b0053399263972307448da7 (patch) | |
tree | 9284cdd9bfd2fe6ea5a0be40ec72a5485ec83d70 /source4/utils | |
parent | f2cd9f66337e5915147236aa4762b8221cfdfa8b (diff) | |
download | samba-b0eec881310dddd23b0053399263972307448da7.tar.gz samba-b0eec881310dddd23b0053399263972307448da7.tar.bz2 samba-b0eec881310dddd23b0053399263972307448da7.zip |
r26344: Fix memory access.
(This used to be commit 966248108f97d237b41ff2d14ec1e592d61d8db3)
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/testparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/utils/testparm.c b/source4/utils/testparm.c index 381d2b3b59..bd4bc79240 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)); |