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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user