[Groonga-commit] groonga/groonga at 8b1f473 [fix-never-read] Remove needless assignment

Back to archive index

HAYASHI Kentaro null+****@clear*****
Sat Dec 13 21:05:15 JST 2014


HAYASHI Kentaro	2014-12-13 21:05:15 +0900 (Sat, 13 Dec 2014)

  New Revision: 8b1f473e143f4bf502388cf75b7b359ccfb2b7d2
  https://github.com/groonga/groonga/commit/8b1f473e143f4bf502388cf75b7b359ccfb2b7d2

  Message:
    Remove needless assignment
    
    It is executed twice because while loop contains same one at the
    beginning part.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+0 -2)
===================================================================
--- lib/db.c    2014-12-13 21:02:46 +0900 (8409e3f)
+++ lib/db.c    2014-12-13 21:05:15 +0900 (d5ce4b1)
@@ -11175,7 +11175,6 @@ json_read(grn_ctx *ctx, grn_loader *loader, const char *str, unsigned int str_le
     case GRN_LOADER_BEGIN :
       if ((len = grn_isspace(str, ctx->encoding))) {
         str += len;
-        c = *str;
         continue;
       }
       switch (c) {
@@ -11195,7 +11194,6 @@ json_read(grn_ctx *ctx, grn_loader *loader, const char *str, unsigned int str_le
     case GRN_LOADER_TOKEN :
       if ((len = grn_isspace(str, ctx->encoding))) {
         str += len;
-        c = *str;
         continue;
       }
       switch (c) {
-------------- next part --------------
HTML����������������������������...
Download 



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