- if ((orig_cfg.other_browser_cmd &&
- strcmp(get_other_browser_cmd(), orig_cfg.other_browser_cmd)) ||
- (!orig_cfg.other_browser_cmd &&
- strlen(get_other_browser_cmd()) > 0)) {
+ if (strlen(get_other_browser_cmd()) == 0) {
+ new_cfg.other_browser_cmd = NULL;
+ new_cfg.flags &= ~SWB_CONFIG_OTHER_BROWSER_CMD_SET;
+ } else if (!(orig_cfg.other_browser_cmd &&
+ !strcmp(get_other_browser_cmd(),
+ orig_cfg.other_browser_cmd))) {