From 20f7e4d301ee0f017e65eb6c7a44d5e95cd62029 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 15 Jan 2015 13:57:28 +0100 Subject: [PATCH] Fixed clang warnings. Fixed check for compatibility command line. --- client/common/cmdline.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 5268267ce..c1d24176c 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -509,7 +509,7 @@ static char** freerdp_command_line_parse_comma_separated_values(char* list, int* int index; int nCommas; - nArgs = nCommas = 0; + nCommas = 0; assert(NULL != count); @@ -1080,7 +1080,8 @@ BOOL freerdp_client_detect_command_line(int argc, char** argv, DWORD* flags) if (posix_cli_status <= COMMAND_LINE_STATUS_PRINT) return compatibility; - if (windows_cli_count >= posix_cli_count) + /* Check, if this may be windows style syntax... */ + if (windows_cli_count && (windows_cli_count >= posix_cli_count)) { *flags = COMMAND_LINE_SEPARATOR_COLON; *flags |= COMMAND_LINE_SIGIL_SLASH | COMMAND_LINE_SIGIL_PLUS_MINUS; @@ -1189,7 +1190,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings, return status; } - arg = CommandLineFindArgumentA(args, "v"); + CommandLineFindArgumentA(args, "v"); arg = args;