This commit is contained in:
刘可亮
2024-06-04 19:00:30 +08:00
parent 990c72f5be
commit 0a13af6a1d
1668 changed files with 342810 additions and 37726 deletions

View File

@@ -118,7 +118,10 @@ static gd_gif * gif_open(gd_gif * gif_base)
gif = GIF_IMG_ALLOC(sizeof(gd_gif) + 2 * stride * height + width * height);
#endif
if (!gif) goto fail;
if (!gif) {
PRINTF("alloc mem fail\n");
goto fail;
}
memcpy(gif, gif_base, sizeof(gd_gif));
gif->width = width;
gif->height = height;