Kouhei Sutou
null+****@clear*****
Mon Nov 2 17:52:52 JST 2015
Kouhei Sutou 2015-11-02 17:52:52 +0900 (Mon, 02 Nov 2015) New Revision: b32a7c5baadaaca4ef6bb9774ead83d84957f220 https://github.com/groonga/groonga/commit/b32a7c5baadaaca4ef6bb9774ead83d84957f220 Message: pat: fix inverted condition In grn_rc, error (= !GRN_SUCCESS) cases are true value in C. Modified files: lib/pat.c Modified: lib/pat.c (+1 -1) =================================================================== --- lib/pat.c 2015-11-02 17:52:34 +0900 (c6f30e7) +++ lib/pat.c 2015-11-02 17:52:52 +0900 (0368309) @@ -810,7 +810,7 @@ _grn_pat_add(grn_ctx *ctx, grn_pat *pat, const uint8_t *key, uint32_t size, uint r = pat->header->curr_rec + 1; rn = pat_get(ctx, pat, r); if (!rn) { return 0; } - if (!pat_node_set_key(ctx, pat, rn, key, size)) { return 0; } + if (pat_node_set_key(ctx, pat, rn, key, size)) { return 0; } pat->header->curr_rec = r; pat->header->n_entries++; } -------------- next part -------------- HTML����������������������������...다운로드