[Groonga-commit] groonga/groonga at 463d848 [master] grn_pat: remove an invalid branch condition

Back to archive index

susumu.yata null+****@clear*****
Wed Oct 28 16:34:28 JST 2015


susumu.yata	2015-10-28 16:34:28 +0900 (Wed, 28 Oct 2015)

  New Revision: 463d848ef8518bf58e4f35539b5ac27c4a84ffb7
  https://github.com/groonga/groonga/commit/463d848ef8518bf58e4f35539b5ac27c4a84ffb7

  Message:
    grn_pat: remove an invalid branch condition

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2015-10-28 16:28:30 +0900 (95c60dd)
+++ lib/pat.c    2015-10-28 16:34:28 +0900 (1f7de66)
@@ -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;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index