[sr-dev] git:4.1: core: reset cur_opt shortcut after use, it points to local variable