Fixed character check. Used wrong version of patch previously.

(cherry picked from commit 9809d937ac)
This commit is contained in:
Ted Gould 2012-09-07 11:10:29 -05:00 committed by Bernhard Miklautz
parent ee0cc492fd
commit b6665693d7

View File

@ -749,7 +749,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);
}
}