diff options
-rw-r--r-- | ext/gd/gd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 70f06af445..582e6a28c0 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1414,7 +1414,7 @@ PHP_FUNCTION(imagecolortransparent) ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", GDG(le_gd)); - if ((*COL) != NULL) { + if (COL != NULL && (*COL) != NULL) { col = (*COL)->value.lval; gdImageColorTransparent(im,col); } |