[Groonga-commit] groonga/groonga at 72a7986 [master] grn_pat: remove a branch condition that is always true

Back to archive index

susumu.yata null+****@clear*****
Sun Nov 1 21:22:04 JST 2015


susumu.yata	2015-11-01 21:22:04 +0900 (Sun, 01 Nov 2015)

  New Revision: 72a7986e6d40d213865f8f1cd4dbc07dabc43a84
  https://github.com/groonga/groonga/commit/72a7986e6d40d213865f8f1cd4dbc07dabc43a84

  Message:
    grn_pat: remove a branch condition that is always true

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -1)
===================================================================
--- lib/pat.c    2015-10-30 19:13:30 +0900 (88aa7cd)
+++ lib/pat.c    2015-11-01 21:22:04 +0900 (00b3e39)
@@ -1187,7 +1187,7 @@ _grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int
     return GRN_FILE_CORRUPT;
   }
   otherside = (rn0->lr[1] == r) ? rn0->lr[0] : rn0->lr[1];
-  if (otherside && r != otherside) {
+  if (otherside) {
     PAT_AT(pat, otherside, rno);
     if (!rno) {
       return GRN_FILE_CORRUPT;
-------------- next part --------------
HTML����������������������������...
Download 



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