} else { orig = NULL;
void set_scrollcopyrect_mode(char *str) {	char *orig = scroll_copyrect;	if (str == NULL || *str == '\0') {		scroll_copyrect = strdup(scroll_copyrect_default);	} else if (!strcmp(str, "always") || !strcmp(str, "all") ||		    !strcmp(str, "both")) {		scroll_copyrect = strdup("always");	} else if (!strcmp(str, "keys") || !strcmp(str, "keyboard")) {		scroll_copyrect = strdup("keys");	} else if (!strcmp(str, "mouse") || !strcmp(str, "pointer")) {		scroll_copyrect = strdup("mouse");	} else if (!strcmp(str, "never") || !strcmp(str, "none")) {		scroll_copyrect = strdup("never");	} else {		if (! scroll_copyrect) {			scroll_copyrect = strdup(scroll_copyrect_default);		}		rfbLog("unknown -scrollcopyrect mode: %s, using: %s\n", str,		    scroll_copyrect);	}	if (orig) {		free(orig);	}}