[client,x11] fixed missing NULL check in clipboard

This commit is contained in:
Armin Novak 2023-03-01 14:22:42 +01:00 committed by akallabeth
parent cc65f5db31
commit d7c55d76df

View File

@ -1743,7 +1743,8 @@ static UINT xf_cliprdr_server_format_list(CliprdrClientContext* context,
const xfCliprdrFormat* clientFormat = &clipboard->clientFormats[j];
if (xf_cliprdr_formats_equal(format, clientFormat))
{
if (strcmp(type_FileGroupDescriptorW, clientFormat->formatName) == 0)
if ((clientFormat->formatName != NULL) &&
(strcmp(type_FileGroupDescriptorW, clientFormat->formatName) == 0))
{
if (!cliprdr_file_context_has_local_support(clipboard->file))
continue;