[Groonga-commit] groonga/groonga at 36b6ed5 [master] pat: remove needless initialization

Back to archive index

naoa null+****@clear*****
Mon Feb 1 16:38:48 JST 2016


naoa	2016-02-01 16:38:48 +0900 (Mon, 01 Feb 2016)

  New Revision: 36b6ed559784c0eeacd9ffaabc3b5f6b54017666
  https://github.com/groonga/groonga/commit/36b6ed559784c0eeacd9ffaabc3b5f6b54017666

  Merged 2d929d3: Merge pull request #460 from naoa/pat-fussy-search

  Message:
    pat: remove needless initialization

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+2 -2)
===================================================================
--- lib/pat.c    2016-02-01 16:36:02 +0900 (bd85c66)
+++ lib/pat.c    2016-02-01 16:38:48 +0900 (75a66ed)
@@ -1234,7 +1234,7 @@ calc_edit_distance_by_offset(grn_ctx *ctx,
                              uint32_t offset, uint32_t max_distance,
                              grn_bool *can_transition, int flags)
 {
-  uint32_t cx, cy, x = 1, y = 1;
+  uint32_t cx, cy, x, y;
   const char *px, *py;
 
   /* Skip already calculated rows */
@@ -1357,7 +1357,7 @@ _grn_pat_fuzzy_search(grn_ctx *ctx, grn_pat *pat, grn_id id,
         }
       }
       if (len - offset) {
-        uint16_t distance = 0;
+        uint16_t distance;
         distance =
           calc_edit_distance_by_offset(ctx,
                                        key, key + key_size,
-------------- next part --------------
HTML����������������������������...
Télécharger 



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