[Groonga-commit] groonga/grnci at 04eaada [master] Fix a bug that CommandReader returns a corrupted command.

Back to archive index

Susumu Yata null+****@clear*****
Fri Jul 7 11:35:07 JST 2017


Susumu Yata	2017-07-07 11:35:07 +0900 (Fri, 07 Jul 2017)

  New Revision: 04eaadacfcc533d086141904fcf0841dd64b6a14
  https://github.com/groonga/grnci/commit/04eaadacfcc533d086141904fcf0841dd64b6a14

  Message:
    Fix a bug that CommandReader returns a corrupted command.

  Modified files:
    v2/command.go

  Modified: v2/command.go (+1 -1)
===================================================================
--- v2/command.go    2017-07-06 17:08:11 +0900 (73ac17b)
+++ v2/command.go    2017-07-07 11:35:07 +0900 (34a86ba)
@@ -1043,10 +1043,10 @@ func (cr *CommandReader) fill() error {
 			})
 		}
 	}
+	cr.left = cr.buf[:len(cr.left)+n]
 	if n == 0 {
 		return cr.err
 	}
-	cr.left = cr.buf[:len(cr.left)+n]
 	return nil
 }
 
-------------- next part --------------
HTML����������������������������...
Descargar 



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