From f79eeb7446f753fffbd9e37c23cee9659fc9068c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 22 Nov 2018 11:19:12 +0100 Subject: [PATCH] Fixed NULL access checks. --- client/common/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/common/client.c b/client/common/client.c index 43f9e202f..7423811aa 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -311,7 +311,7 @@ int freerdp_client_settings_parse_assistance_file(rdpSettings* settings, char* password = NULL; rdpAssistanceFile* file; - if (!settings || !argv || (argc < 1)) + if (!settings || !argv || (argc < 2)) return -1; filename = argv[1];