[Groonga-commit] groonga/groonga at b668925 [master] Remove needless assignment

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Feb 20 01:27:09 JST 2015


HAYASHI Kentaro	2015-02-20 01:27:09 +0900 (Fri, 20 Feb 2015)

  New Revision: b668925bff9d69843eabac6b556d384fe9812982
  https://github.com/groonga/groonga/commit/b668925bff9d69843eabac6b556d384fe9812982

  Message:
    Remove needless assignment
    
    There is dead assignment about variable "c".
    
    Here is the code:
    
      while (...) {
        c = *str
        switch (...) {
          case GRN_LOADER_BEGIN :
          if (...) {
            c = *str; <- HERE
            continue;
          }
        ...

  Modified files:
    lib/db.c

  Modified: lib/db.c (+0 -1)
===================================================================
--- lib/db.c    2015-02-20 00:32:33 +0900 (b9cea06)
+++ lib/db.c    2015-02-20 01:27:09 +0900 (d3548ad)
@@ -11659,7 +11659,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) {
-------------- next part --------------
HTML����������������������������...
Download 



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