From 904be7c94d6bf72a1c6ec44f2836bc8ad54797bd Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 7 Mar 2018 18:54:46 -0800 Subject: [PATCH] fix Read call in seccat License: MIT Signed-off-by: Steven Allen --- cmd/seccat/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/seccat/util.go b/cmd/seccat/util.go index c458f0231..d21883535 100644 --- a/cmd/seccat/util.go +++ b/cmd/seccat/util.go @@ -31,7 +31,7 @@ type logRW struct { func (r *logRW) Read(buf []byte) (int, error) { n, err := r.rw.Read(buf) - if err == nil { + if n > 0 { log.Debugf("%s read: %v", r.n, buf) } return n, err