diff --git a/libfreerdp/utils/args.c b/libfreerdp/utils/args.c index 157ed67d3..503af4286 100644 --- a/libfreerdp/utils/args.c +++ b/libfreerdp/utils/args.c @@ -898,7 +898,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv, if (scanf("%511s", input) > 0) { /* Try to catch the cases where the string is NULL-ish right at the get go */ - if (input[0] != '\0' || (input[0] == ' ' && input[1] == '\0')) { + if (input[0] != '\0' && !(input[0] == '.' && input[1] == '\0')) { settings->domain = xstrdup(input); } }