mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
V1.0.5
This commit is contained in:
5
packages/third-party/gif/gifdecoder.c
vendored
5
packages/third-party/gif/gifdecoder.c
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user