summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2000-05-01 22:14:54 +0000
committerRasmus Lerdorf <rasmus@php.net>2000-05-01 22:14:54 +0000
commit0628b332782f45c9adde42771c52fcf97ec8d68c (patch)
tree51ecf62f689724baa63d0cdb6e2c68de3f13ae29
parent0d36199cf991792369517ef38d714ae21d222671 (diff)
downloadphp-git-0628b332782f45c9adde42771c52fcf97ec8d68c.tar.gz
Never mind on the error check
-rw-r--r--ext/gd/gd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 85f5a8b25c..438e23a1e9 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1463,10 +1463,6 @@ static void php_imagepolygon(INTERNAL_FUNCTION_PARAMETERS, int filled) {
}
points = (gdPointPtr) emalloc(npoints * sizeof(gdPoint));
- if (points == NULL) {
- php_error(E_WARNING, "ImagePolygon: Memory allocation fault");
- RETURN_FALSE;
- }
for (i = 0; i < npoints; i++) {
if (zend_hash_index_find((*POINTS)->value.ht, (i * 2), (void **) &var) == SUCCESS) {