From e969049aa3e6a5336f272fdd257ac813ffb21610 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 23 Jun 2015 16:04:15 +0200 Subject: [PATCH] Removed unused variable and incorrect comment. --- client/common/cmdline.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 02f4ee0..f5b7e5f 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -969,7 +969,6 @@ int freerdp_parse_username(char* username, char** user, char** domain) int length = 0; p = strchr(username, '\\'); - u = strrchr(username, '@'); *user = NULL; *domain = NULL; @@ -1002,10 +1001,6 @@ int freerdp_parse_username(char* username, char** user, char** domain) if (!*user) return -1; - /* If only username is given, prefix that with 'TARGET' - * otherwise set the domain to an empty string. - * NOTE: Domain NULL will result in undefined behavior. - */ *domain = _strdup("\0"); if (!*domain) -- 2.7.4