Commit 1ea08d74 authored by Ganjing0224's avatar Ganjing0224 Committed by Simon Ser
Browse files

cursor/convert_font.c: malloc cannot guarantee that the memory allocated is always successful

parent e53e0edf
Pipeline #220285 passed with stages
in 1 minute and 24 seconds
......@@ -499,6 +499,11 @@ output_interesting_cursors()
struct reconstructed_glyph *glyphs =
malloc(n * sizeof(*glyphs));
if (!glyphs) {
printf("reconstructed_glyph malloc failed\n");
for (i = 0; i < n; ++i) {
struct glyph *cursor, *mask;
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