From 84f306532c9908f4ff6fd9f1778e694a0ec96c12 Mon Sep 17 00:00:00 2001 From: Ted Blackman Date: Sun, 26 Sep 2021 21:54:36 -0400 Subject: [PATCH] sur/hood: fix uninitialized foreign desk crash --- pkg/base-dev/sur/hood.hoon | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/base-dev/sur/hood.hoon b/pkg/base-dev/sur/hood.hoon index fc681c296d..e9a7829207 100644 --- a/pkg/base-dev/sur/hood.hoon +++ b/pkg/base-dev/sur/hood.hoon @@ -135,9 +135,13 @@ =/ yon (scot %ud aeon) :: =/ dom .^(dome cv/~[her syd yon]) - =/ tak (scot %uv (~(got by hit.dom) let.dom)) + =/ yon (~(get by hit.dom) let.dom) + ?~ yon ~ + =/ tak (scot %uv u.yon) =/ yak .^(yaki cs/~[her syd yon %yaki tak]) - =/ lob (scot %uv (~(got by q.yak) /desk/bill)) + =/ fil (~(get by q.yak) /desk/bill) + ?~ fil ~ + =/ lob (scot %uv u.fil) =/ bob .^(blob cs/~[her syd yon %blob lob]) :: ;; (list dude)