projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
pe*alloc
[m6w6/ext-psi]
/
src
/
types
/
const.c
diff --git
a/src/types/const.c
b/src/types/const.c
index 1a06e431eb3358492362b6cba62ab82449b7d9cb..1afbac029c85a09bf25c87394d946640868876c1 100644
(file)
--- a/
src/types/const.c
+++ b/
src/types/const.c
@@
-29,7
+29,7
@@
struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name,
struct psi_impl_def_val *val)
{
struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name,
struct psi_impl_def_val *val)
{
- struct psi_const *c =
calloc(1, sizeof(*c)
);
+ struct psi_const *c =
pecalloc(1, sizeof(*c), 1
);
if (name->val[0] == '\\') {
c->name = zend_string_init(&name->val[1], name->len-1, 1);
if (name->val[0] == '\\') {
c->name = zend_string_init(&name->val[1], name->len-1, 1);