From: Arran Cudbard-Bell Date: Fri, 6 May 2016 22:43:09 +0000 (-0400) Subject: Don't mix labels and positional field assignments X-Git-Tag: release_3_0_12~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa01055579635c1e60ec8b5e956f7ac250792d5;p=thirdparty%2Ffreeradius-server.git Don't mix labels and positional field assignments --- diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c index 9a7f2ba9e3b..25ad1aa25b9 100644 --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -100,8 +100,8 @@ typedef struct python_thread_state { */ static CONF_PARSER module_config[] = { -#define A(x) { "mod_" #x, FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, x.module_name), .dflt = "${.module}" }, \ - { "func_" #x, FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, x.function_name), .dflt = NULL }, +#define A(x) { "mod_" #x, FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, x.module_name), "${.module}" }, \ + { "func_" #x, FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, x.function_name) }, A(instantiate) A(authorize) @@ -120,8 +120,8 @@ static CONF_PARSER module_config[] = { #undef A - { "python_path", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, python_path), .dflt = NULL }, - { "cext_compat", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, rlm_python_t, cext_compat), .dflt = true }, + { "python_path", FR_CONF_OFFSET(PW_TYPE_STRING, rlm_python_t, python_path) }, + { "cext_compat", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, rlm_python_t, cext_compat), true }, CONF_PARSER_TERMINATOR };