[svn:parrot] r40832 - branches/context_pmc3/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Aug 27 22:15:22 UTC 2009
Author: bacek
Date: Thu Aug 27 22:15:21 2009
New Revision: 40832
URL: https://trac.parrot.org/parrot/changeset/40832
Log:
[pmc] Fix check for NULL sub_pmc in Exception.backtrace.
I don't know how I managed to break it...
Modified:
branches/context_pmc3/src/pmc/exception.pmc
Modified: branches/context_pmc3/src/pmc/exception.pmc
==============================================================================
--- branches/context_pmc3/src/pmc/exception.pmc Thu Aug 27 21:38:28 2009 (r40831)
+++ branches/context_pmc3/src/pmc/exception.pmc Thu Aug 27 22:15:21 2009 (r40832)
@@ -769,7 +769,7 @@
/* Get sub and put it in the hash. */
PMC *sub_pmc = Parrot_cx_get_sub(interp, cur_ctx);
- if (sub_pmc)
+ if (!sub_pmc)
sub_pmc = PMCNULL;
VTABLE_set_pmc_keyed_str(interp, frame, CONST_STRING(interp, "sub"), sub_pmc);
More information about the parrot-commits
mailing list