Permalink
Browse files

Copy/paste typo fixed in setting return values for function failure

  • Loading branch information...
1 parent 51e4b69 commit 9d3c070307e2e916c979753fd3ffe600bb92b116 Mark Burgess committed Apr 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/fncall.c
View
@@ -234,14 +234,14 @@ FnCallResult EvaluateFunctionCall(FnCall *fp, Promise *pp)
CfOut(cf_error, "", "No such FnCall \"%s()\" - context info unavailable\n", fp->name);
}
- return (FnCallResult) { FNCALL_FAILURE, { NULL, CF_NOPROMISEE } };
+ return (FnCallResult) { FNCALL_FAILURE, { CopyFnCall(fp), CF_FNCALL } };
}
/* If the container classes seem not to be defined at this stage, then don't try to expand the function */
if ((pp != NULL) && !IsDefinedClass(pp->classes))
{
- return (FnCallResult) { FNCALL_FAILURE, { NULL, CF_NOPROMISEE } };
+ return (FnCallResult) { FNCALL_FAILURE, { CopyFnCall(fp), CF_FNCALL } };
}
expargs = NewExpArgs(fp, pp);

0 comments on commit 9d3c070

Please sign in to comment.