提交 014e20d8 编写于 作者: M Michael Gehring 提交者: Derek Parker

proc: don't deref nil pointer if getG fails

上级 b5483aa9
......@@ -308,6 +308,8 @@ func (thread *Thread) getG() (g *G, err error) {
return nil, err
}
g, err = parseG(thread, regs.CX(), false)
g.thread = thread
if err == nil {
g.thread = thread
}
return
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册