diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 982c186ae9..064f67ba82 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -611,7 +611,7 @@ static const char *lp_string(const char *s) char fn_name(void) {return(*(char *)(ptr));} #endif #define FN_GLOBAL_INTEGER(fn_name,var_name) \ - int fn_name(struct loadparm_context *lp_ctx) {if (lp_ctx == NULL) return 0; return lp_ctx->globals->var_name;} + int fn_name(struct loadparm_context *lp_ctx) {return lp_ctx->globals->var_name;} #define FN_LOCAL_STRING(fn_name,val) \ const char *fn_name(struct loadparm_service *service) {return(lp_string((const char *)((service != NULL && service->val != NULL) ? service->val : sDefault.val)));} |