Navigation Menu

Skip to content

Commit

Permalink
grn_pat: remove an invalid branch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Oct 28, 2015
1 parent 001230a commit 463d848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pat.c
Expand Up @@ -1276,7 +1276,7 @@ _grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int
if (*p0 == otherside) {
/* The previous node (*p0) has a self-loop (rn0 == rno). */
PAT_CHK_SET(rno, 0);
if (proot == p0 && !rno->check) {
if (proot == p0) {
const uint8_t *k = pat_node_get_key(ctx, pat, rno);
int direction = k ? (*k >> 7) : 1;
rno->lr[direction] = otherside;
Expand Down

0 comments on commit 463d848

Please sign in to comment.