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:
Dave Beazley 2000-07-07 02:59:25 +00:00
commit 54091d6733

View file

@ -55,7 +55,9 @@ DohDelete(DOH *obj) {
DOH *
DohCopy(const DOH *obj) {
DohBase *b = (DohBase *) obj;
DohObjInfo *objinfo = dohtypes[b->type];
DohObjInfo *objinfo;
if (!obj) return 0;
objinfo = dohtypes[b->type];
if (objinfo->doh_copy)
return (objinfo->doh_copy)(b);