Remove NULL check which can never be NULL
A pointer to a struct member can't be NULL!
This commit is contained in:
parent
a1abc692d3
commit
d2a0956766
1 changed files with 1 additions and 2 deletions
|
|
@ -144,8 +144,7 @@ static void print_creation_free_wrapper(Node *n) {
|
|||
Printf(s, " SWIG_remove((%s *)obj->ptr);\n", Getattr(n, "classtype"));
|
||||
}
|
||||
|
||||
Printf(s, " if(&obj->std)\n");
|
||||
Printf(s, " zend_object_std_dtor(&obj->std);\n}\n\n\n");
|
||||
Printf(s, " zend_object_std_dtor(&obj->std);\n}\n\n\n");
|
||||
|
||||
Printf(s, "/* Object Creation Method for class %s */\n",class_name);
|
||||
Printf(s, "zend_object * %s_object_new(zend_class_entry *ce) {\n",class_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue