summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/coreconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/coreconfig.c b/Python/coreconfig.c
index 0ec4640..625c743 100644
--- a/Python/coreconfig.c
+++ b/Python/coreconfig.c
@@ -1344,7 +1344,7 @@ _PyCoreConfig_Read(_PyCoreConfig *config)
config->argc = 0;
}
- if (config->filesystem_encoding == NULL && config->filesystem_errors == NULL) {
+ if (config->filesystem_encoding == NULL || config->filesystem_errors == NULL) {
err = config_init_fs_encoding(config);
if (_Py_INIT_FAILED(err)) {
return err;