# HG changeset patch # User jwe # Date 752967724 0 # Node ID c8863fc976eec78fc0b49fef6a031c91a8cf06fd # Parent 1761d7a3770ca845a06ea56cecc009880bc59a72 [project @ 1993-11-10 21:42:04 by jwe] diff -r 1761d7a3770c -r c8863fc976ee src/variables.cc --- a/src/variables.cc Wed Nov 10 21:00:31 1993 +0000 +++ b/src/variables.cc Wed Nov 10 21:42:04 1993 +0000 @@ -350,7 +350,10 @@ { // Would be nice not to have this cast. XXX FIXME XXX tree_constant *tmp = (tree_constant *) sr->def (); - tmp = new tree_constant (*tmp); + if (tmp == NULL_TREE_CONST) + tmp = new tree_constant (); + else + tmp = new tree_constant (*tmp); gsr->define (tmp); } else