Skip to content

Commit

Permalink
Add missing explicit initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 14, 2014
1 parent 1291b60 commit c675da1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -2805,6 +2805,7 @@ grn_obj_search_accessor(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
grn_ii_posting posting;
posting.rid = *record_id;
posting.sid = 1;
posting.pos = 0;
posting.weight = recinfo->score - 1;
grn_ii_posting_add(ctx, &posting, (grn_hash *)res, op);
});
Expand Down

0 comments on commit c675da1

Please sign in to comment.