summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-06-23 15:27:04 +0000
committerSimo Sorce <idra@samba.org>2001-06-23 15:27:04 +0000
commit2b8e2f16c39392f0915616142c11feab80852f27 (patch)
treeb5aea4df8e750d310c1c08de1d1d3f3a2b9720cd /source3/web
parent5be670074e908781ff67d3cbbce35b3e61b2058a (diff)
downloadsamba-2b8e2f16c39392f0915616142c11feab80852f27.tar.gz
samba-2b8e2f16c39392f0915616142c11feab80852f27.tar.bz2
samba-2b8e2f16c39392f0915616142c11feab80852f27.zip
uhm some pointer went wrong
(This used to be commit d0acacfc9df86abab24420f1807b4d5253e8c285)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 262e7ef4c8..8374cd445a 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -183,8 +183,8 @@ static void show_parameter(int snum, struct parm_struct *parm)
case P_LIST:
printf("<input type=text size=40 name=\"parm_%s\" value=\"",
make_parm_name(parm->label));
- if (ptr) {
- char** list = ptr;
+ if ((char ***)ptr && *(char ***)ptr && **(char ***)ptr) {
+ char **list = *(char ***)ptr;
for (;*list;list++) {
printf("%s%s", *list, ((*(list+1))?" ":""));
}
@@ -193,7 +193,7 @@ static void show_parameter(int snum, struct parm_struct *parm)
printf("<input type=button value=\"Set Default\" onClick=\"swatform.parm_%s.value=\'",
make_parm_name(parm->label));
if (parm->def.lvalue) {
- char **list = parm->def.lvalue;
+ char **list = (char **)(parm->def.lvalue);
for (; *list; list++) {
printf("%s%s", *list, ((*(list+1))?" ":""));
}
@@ -301,7 +301,7 @@ static void show_parameters(int snum, int allparameters, int advanced, int print
break;
case P_LIST:
- if (!lp_list_compare(*(char ***)ptr,(char **)(parm->def.lvalue))) continue;
+ if (!lp_list_compare(*(char ***)ptr, (char **)(parm->def.lvalue))) continue;
break;
case P_STRING: