From fb8388ab2e50ca28ef9a83c73c329f8d0b6234d9 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Sun, 25 Sep 2016 17:28:22 +0200 Subject: [PATCH] proc/variables: missing return statement on error (#643) Fixes #642 --- proc/variables.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proc/variables.go b/proc/variables.go index 5fe0ab69..fbc04b1f 100644 --- a/proc/variables.go +++ b/proc/variables.go @@ -1513,6 +1513,7 @@ func (v *Variable) loadInterface(recurseLevel int, loadData bool, cfg LoadConfig typdata, err := v.dbp.CurrentThread.readMemory(res, 3+v.dbp.arch.PtrSize()) if err != nil { v.Unreadable = fmt.Errorf("could not read concrete type (data: %#v): %v", data.Addr, err) + return } nl := int(typdata[1]<<8 | typdata[2])