mirror of https://github.com/FreeRDP/FreeRDP
Fixed BehaviourSanitizer warning in rdp parser
This commit is contained in:
parent
401bb836fb
commit
81765e71f3
|
@ -203,6 +203,7 @@ struct rdp_file
|
|||
DWORD flags;
|
||||
};
|
||||
|
||||
static void freerdp_client_file_string_check_free(LPSTR str);
|
||||
/*
|
||||
* Set an integer in a rdpFile
|
||||
*
|
||||
|
@ -846,6 +847,7 @@ BOOL freerdp_client_parse_rdp_file_ex(rdpFile* file, const char* name, rdp_file_
|
|||
{ \
|
||||
if (_setting) \
|
||||
{ \
|
||||
freerdp_client_file_string_check_free(_target); \
|
||||
_target = _strdup(_setting); \
|
||||
if (!_target) \
|
||||
return FALSE; \
|
||||
|
|
Loading…
Reference in New Issue