Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid a NULL deref.
  • Loading branch information
jnthn committed Jun 21, 2013
1 parent c673b0f commit e7596b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vm/parrot/guts/bind.c
Expand Up @@ -492,9 +492,10 @@ Rakudo_binding_bind_one_param(PARROT_INTERP, PMC *lexpad, Rakudo_Signature *sign
if (!PMC_IS_NULL(param->coerce_type)) {
/* Coercing natives not possible - nothing to call a method on. */
if (bv.type != BIND_VAL_OBJ) {
*error = Parrot_sprintf_c(interp,
"Unable to coerce natively typed parameter '%S'",
param->variable_name);
if (error)
*error = Parrot_sprintf_c(interp,
"Unable to coerce natively typed parameter '%S'",
param->variable_name);
return BIND_RESULT_FAIL;
}

Expand Down

0 comments on commit e7596b6

Please sign in to comment.