Fixed clang warnings.

Fixed check for compatibility command line.
This commit is contained in:
Armin Novak 2015-01-15 13:57:28 +01:00
parent 1d4403cbbe
commit 20f7e4d301

View File

@ -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;