Navigation Menu

Skip to content

Commit

Permalink
Report error instead of SEGV when an error is occurred in function
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 26, 2013
1 parent 234d102 commit fbae529
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/expr.c
Expand Up @@ -2643,6 +2643,9 @@ grn_expr_exec(grn_ctx *ctx, grn_obj *expr, int nargs)
WITH_SPSAVE({
grn_proc_call(ctx, proc, code->nargs, expr);
});
if (ctx->rc) {
goto exit;
}
POP1(res);
{
grn_obj *proc_;
Expand Down

0 comments on commit fbae529

Please sign in to comment.