[Groonga-commit] groonga/groonga [master] Remove needless initialization

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 18 23:54:37 JST 2013


Kouhei Sutou	2013-02-18 23:54:37 +0900 (Mon, 18 Feb 2013)

  New Revision: 99ded11e323436dfb38a1526b54f2401773d7ed2
  https://github.com/groonga/groonga/commit/99ded11e323436dfb38a1526b54f2401773d7ed2

  Log:
    Remove needless initialization

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+1 -1)
===================================================================
--- lib/geo.c    2013-02-18 23:53:40 +0900 (34401c1)
+++ lib/geo.c    2013-02-18 23:54:37 +0900 (54e016d)
@@ -632,7 +632,7 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx,
       indexed_entries = grn_hash_create(ctx, NULL, sizeof(grn_id), 0,
                                         GRN_OBJ_TABLE_HASH_KEY|GRN_HASH_TINY);
     }
-    for (n_entries = 0, ep = entries + offset; n_entries < limit && ep < entries + n; n_entries++, ep++) {
+    for (ep = entries + offset; n_entries < limit && ep < entries + n; n_entries++, ep++) {
       if (!grn_array_add(ctx, (grn_array *)result, (void **)&v)) {
         if (indexed_entries) {
           grn_hash_close(ctx, indexed_entries);
-------------- next part --------------
HTML����������������������������...
Download 



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