From ea4ff9bf23b491c396983605fbb0e4988ae91743 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Aug 2006 14:52:30 +0000 Subject: r17832: Fix bug 4050 (This used to be commit 0504cf6d13c81d90a2457a01a78630d105af0ebc) --- source3/param/loadparm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index acb54f25df..b99fd8a514 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -3864,7 +3864,6 @@ static void dump_a_service(service * pService, FILE * f) BOOL dump_a_parameter(int snum, char *parm_name, FILE * f, BOOL isGlobal) { - service * pService = ServicePtrs[snum]; int i; BOOL result = False; parm_class p_class; @@ -3907,11 +3906,13 @@ BOOL dump_a_parameter(int snum, char *parm_name, FILE * f, BOOL isGlobal) { void *ptr; - if (isGlobal) + if (isGlobal) { ptr = parm_table[i].ptr; - else + } else { + service * pService = ServicePtrs[snum]; ptr = ((char *)pService) + PTR_DIFF(parm_table[i].ptr, &sDefault); + } print_parameter(&parm_table[i], ptr, f); -- cgit