From fd407f85796767f45406dabbaab3c0c597eb2f20 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sat, 1 Aug 2015 23:06:34 -0500 Subject: [PATCH] Fix Linux compilation error --- proc/threads_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/threads_linux.go b/proc/threads_linux.go index 5ad2c2b5..774a6c7b 100644 --- a/proc/threads_linux.go +++ b/proc/threads_linux.go @@ -80,6 +80,6 @@ func (thread *Thread) readMemory(addr uintptr, size int) (data []byte, err error return nil, nil } data = make([]byte, size) - thread.dbp.execPtraceFunc(func() { read, err = sys.PtracePeekData(thread.Id, addr, data) }) + thread.dbp.execPtraceFunc(func() { _, err = sys.PtracePeekData(thread.Id, addr, data) }) return }