Fixed bug in Copy().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9be9862661
commit
54091d6733
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ DohDelete(DOH *obj) {
|
||||||
DOH *
|
DOH *
|
||||||
DohCopy(const DOH *obj) {
|
DohCopy(const DOH *obj) {
|
||||||
DohBase *b = (DohBase *) obj;
|
DohBase *b = (DohBase *) obj;
|
||||||
DohObjInfo *objinfo = dohtypes[b->type];
|
DohObjInfo *objinfo;
|
||||||
|
|
||||||
|
if (!obj) return 0;
|
||||||
objinfo = dohtypes[b->type];
|
objinfo = dohtypes[b->type];
|
||||||
if (objinfo->doh_copy)
|
if (objinfo->doh_copy)
|
||||||
return (objinfo->doh_copy)(b);
|
return (objinfo->doh_copy)(b);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue