Skip to content

Commit ffd56a1

Browse files
StebalienKubuxu
authored andcommitted
fix Read call in seccat
License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent 8b523be commit ffd56a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/seccat/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type logRW struct {
3131

3232
func (r *logRW) Read(buf []byte) (int, error) {
3333
n, err := r.rw.Read(buf)
34-
if err == nil {
34+
if n > 0 {
3535
log.Debugf("%s read: %v", r.n, buf)
3636
}
3737
return n, err

0 commit comments

Comments
 (0)