From 733218b2331bfcf0d91be62418ab63a217e1108e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 24 Sep 2016 20:41:07 +0200 Subject: options: do not mark --profile/--include as M_OPT_FIXED The intention of M_OPT_FIXED is to make options not runtime-changeable, so trying to set them at runtime will always error. This is not wanted for --profile and --include, for which there is no reason to block them at runtime. Fixes #3581. --- options/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index bbe74ff8a2..a91775ddf4 100644 --- a/options/options.c +++ b/options/options.c @@ -243,8 +243,8 @@ const m_option_t mp_opts[] = { {"}", CONF_TYPE_STORE, CONF_NOCFG | M_OPT_FIXED, .offset = -1}, // handled in m_config.c - { "include", CONF_TYPE_STRING, M_OPT_FIXED | M_OPT_FILE, .offset = -1}, - { "profile", CONF_TYPE_STRING_LIST, M_OPT_FIXED, .offset = -1}, + { "include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1}, + { "profile", CONF_TYPE_STRING_LIST, 0, .offset = -1}, { "show-profile", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED, .offset = -1}, { "list-options", CONF_TYPE_STORE, CONF_NOCFG | M_OPT_FIXED, .offset = -1}, OPT_FLAG("list-properties", property_print_help, -- cgit v1.2.3