[sr-dev] git:master:a471d34d: core: init res inside select_cfg_var()