1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r26423: try to fix the build on solaris

metze
This commit is contained in:
Stefan Metzmacher 2007-12-13 09:13:35 +01:00
parent dfb9d704d0
commit 5b62180946

View File

@ -2252,7 +2252,12 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
parm_table[i].type == P_USTRING) &&
parm_table[i].offset != -1 &&
!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
char **r = ((char *)(parm_table[i].class == P_LOCAL)?&sDefault:lp_ctx->globals) + parm_table[i].offset;
char **r;
if (parm_table[i].class == P_LOCAL) {
r = (char **)(&sDefault + parm_table[i].offset);
} else {
r = (char **)(lp_ctx->globals + parm_table[i].offset);
}
*r = talloc_strdup(lp_ctx, "");
}
}