diff options
-rw-r--r-- | src/core/wee-config-file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c index 297c20b6b..cb7e74721 100644 --- a/src/core/wee-config-file.c +++ b/src/core/wee-config-file.c @@ -1480,6 +1480,14 @@ config_file_option_set (struct t_config_option *option, const char *value, else rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; } + else + { + if (old_value_was_null) + { + free (option->value); + option->value = NULL; + } + } } break; case CONFIG_NUM_OPTION_TYPES: |