From 78c6ee0090f4122bc25baaacb5546517ad4b7bc6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 24 Nov 2007 17:27:54 +0100 Subject: Remove some globals (This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02) --- source3/web/swat.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'source3/web') diff --git a/source3/web/swat.c b/source3/web/swat.c index b36168f71f..75a7f1939a 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -324,12 +324,19 @@ static void show_parameter(int snum, struct parm_struct *parm) _("Set Default"), make_parm_name(parm->label),(int)(parm->def.ivalue)); break; - case P_OCTAL: - printf("", make_parm_name(parm->label), octal_string(*(int *)ptr)); - printf("", - _("Set Default"), make_parm_name(parm->label), - octal_string((int)(parm->def.ivalue))); + case P_OCTAL: { + char *o; + o = octal_string(*(int *)ptr); + printf("", + make_parm_name(parm->label), o); + TALLOC_FREE(o); + o = octal_string((int)(parm->def.ivalue)); + printf("", + _("Set Default"), make_parm_name(parm->label), o); + TALLOC_FREE(o); break; + } case P_ENUM: printf("