summaryrefslogtreecommitdiff
path: root/ext/com/conversion.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/com/conversion.c
parente4f109b69fd2b5976d018f1064a772e34352de91 (diff)
downloadphp-git-c977f298626e98aefcbdd77d04f1cba58d4d6590.tar.gz
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
Diffstat (limited to 'ext/com/conversion.c')
-rw-r--r--ext/com/conversion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com/conversion.c b/ext/com/conversion.c
index 92d1a2511d..d6eb0d286e 100644
--- a/ext/com/conversion.c
+++ b/ext/com/conversion.c
@@ -746,7 +746,7 @@ PHPAPI int php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent,
Z_TYPE_P(pval_arg) = IS_OBJECT;
pval_arg->value.obj.ce = &com_class_entry;
- pval_arg->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable));
+ ALLOC_HASHTABLE(pval_arg->value.obj.properties);
zend_hash_init(pval_arg->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
ALLOC_ZVAL(handle);
@@ -886,4 +886,4 @@ PHPAPI char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int per
return C_str;
}
-#endif /* PHP_WIN32 */ \ No newline at end of file
+#endif /* PHP_WIN32 */