1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 22:22:18 +02:00

add error check

This commit is contained in:
Anatol Belski
2016-03-07 16:26:01 +01:00
parent 860dc17ab7
commit 0fccddba75

View File

@@ -14,6 +14,8 @@ gdImagePtr gdImageCreateFromWebp (FILE * inFile)
{
gdImagePtr im;
gdIOCtx *in = gdNewFileCtx(inFile);
if (!in)
return 0;
im = gdImageCreateFromWebpCtx(in);
in->gd_free(in);