summaryrefslogtreecommitdiff
path: root/ext/java/java.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-06-19 16:03:35 +0000
committerAndi Gutmans <andi@php.net>2001-06-19 16:03:35 +0000
commitc977f298626e98aefcbdd77d04f1cba58d4d6590 (patch)
treeb16e135dce4798e0bcc934d52d7921ecf1308c9d /ext/java/java.c
parente4f109b69fd2b5976d018f1064a772e34352de91 (diff)
downloadphp-git-c977f298626e98aefcbdd77d04f1cba58d4d6590.tar.gz
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
Diffstat (limited to 'ext/java/java.c')
-rw-r--r--ext/java/java.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/java/java.c b/ext/java/java.c
index e8cb96a83f..27bfc1e14c 100644
--- a/ext/java/java.c
+++ b/ext/java/java.c
@@ -713,7 +713,7 @@ JNIEXPORT void JNICALL Java_net_php_reflect_setResultFromObject
if (presult->type != IS_OBJECT) {
presult->type=IS_OBJECT;
presult->value.obj.ce=&java_class_entry;
- presult->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable));
+ ALLOC_HASHTABLE(presult->value.obj.properties);
presult->is_ref=1;
presult->refcount=1;
zend_hash_init(presult->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0);