} else { orig = NULL;
void set_wirecopyrect_mode(char *str) {	char *orig = wireframe_copyrect;	if (str == NULL || *str == '\0') {		wireframe_copyrect = strdup(wireframe_copyrect_default);	} else if (!strcmp(str, "always") || !strcmp(str, "all")) {		wireframe_copyrect = strdup("always");	} else if (!strcmp(str, "top")) {		wireframe_copyrect = strdup("top");	} else if (!strcmp(str, "never") || !strcmp(str, "none")) {		wireframe_copyrect = strdup("never");	} else {		if (! wireframe_copyrect) {			wireframe_copyrect = strdup(wireframe_copyrect_default);		}		rfbLog("unknown -wirecopyrect mode: %s, using: %s\n", str,		    wireframe_copyrect);	}	if (orig) {		free(orig);	}}