Navigation Menu

Skip to content

Commit

Permalink
Add a missing NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 5, 2015
1 parent 568d8e0 commit aa2209f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.c
Expand Up @@ -8564,7 +8564,7 @@ grn_ctx_at(grn_ctx *ctx, grn_id id)
}
}
res = vp->ptr;
if (res->header.type == GRN_PROC) {
if (res && res->header.type == GRN_PROC) {
grn_plugin_ensure_registered(ctx, res);
}
}
Expand Down

0 comments on commit aa2209f

Please sign in to comment.