Commit c848e4ee authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

riched20: Check for NULL in rtf reader (Coverity).

parent 40026a7e
...@@ -1109,7 +1109,10 @@ static void ReadStyleSheet(RTF_Info *info) ...@@ -1109,7 +1109,10 @@ static void ReadStyleSheet(RTF_Info *info)
} }
sep = New (RTFStyleElt); sep = New (RTFStyleElt);
if (sep == NULL) if (sep == NULL)
{
ERR ( "%s: cannot allocate style element\n", fn); ERR ( "%s: cannot allocate style element\n", fn);
break;
}
sep->rtfSEClass = info->rtfClass; sep->rtfSEClass = info->rtfClass;
sep->rtfSEMajor = info->rtfMajor; sep->rtfSEMajor = info->rtfMajor;
sep->rtfSEMinor = info->rtfMinor; sep->rtfSEMinor = info->rtfMinor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment