From: Arran Cudbard-Bell Date: Thu, 17 Aug 2017 14:52:41 +0000 (+0800) Subject: Actually use inst->wide_name X-Git-Tag: release_3_0_16~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c68d4fcec437d2c379955df2b8ae61af2a70c670;p=thirdparty%2Ffreeradius-server.git Actually use inst->wide_name --- diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c index 6803e3ab1b7..e79f83e98d1 100644 --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -914,7 +914,7 @@ static int python_interpreter_init(rlm_python_t *inst, CONF_SECTION *conf) #if PY_VERSION_HEX > 0x03050000 { inst->wide_name = Py_DecodeLocale(main_config.name, strlen(main_config.name)); - Py_SetProgramName(name); /* The value of argv[0] as a wide char string */ + Py_SetProgramName(inst->wide_name); /* The value of argv[0] as a wide char string */ } #else {