[svn:parrot] r41905 - branches/pcc_reapply/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat Oct 17 20:46:50 UTC 2009
Author: chromatic
Date: Sat Oct 17 20:46:50 2009
New Revision: 41905
URL: https://trac.parrot.org/parrot/changeset/41905
Log:
[PMC] Fixed more Parrot_pcc_invoke_* calls with uninitialized return values.
Modified:
branches/pcc_reapply/src/pmc/object.pmc
Modified: branches/pcc_reapply/src/pmc/object.pmc
==============================================================================
--- branches/pcc_reapply/src/pmc/object.pmc Sat Oct 17 20:46:47 2009 (r41904)
+++ branches/pcc_reapply/src/pmc/object.pmc Sat Oct 17 20:46:50 2009 (r41905)
@@ -172,7 +172,7 @@
PMC * const method = Parrot_oo_find_vtable_override(interp, _class, name);
if (!PMC_IS_NULL(method)) {
- STRING *result;
+ STRING *result = NULL;
Parrot_pcc_invoke_sub_from_c_args(interp, method, "Pi->S",
SELF, &result);
return result;
@@ -219,7 +219,7 @@
VTABLE_get_class(interp, SELF), get_attr);
if (!PMC_IS_NULL(method)) {
- PMC *result;
+ PMC *result = PMCNULL;
Parrot_pcc_invoke_sub_from_c_args(interp, method, "PiS->P",
SELF, name, &result);
return result;
More information about the parrot-commits
mailing list