summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 8b84cefc19..ef53a29b2b 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2254,9 +2254,9 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
char **r;
if (parm_table[i].class == P_LOCAL) {
- r = (char **)(&sDefault + parm_table[i].offset);
+ r = (char **)(((char *)&sDefault) + parm_table[i].offset);
} else {
- r = (char **)(lp_ctx->globals + parm_table[i].offset);
+ r = (char **)(((char *)lp_ctx->globals) + parm_table[i].offset);
}
*r = talloc_strdup(lp_ctx, "");
}