From 7189337b026bdeae45b963c7022775a88fabcc17 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 5 Apr 2020 00:35:00 +0800 Subject: [PATCH] [eguile-utilities] prevent crash in balsheet-eg.scm bb986e474 use of (ice-9 match) was technically sound however exposes a subtle bug; _ in the matching pattern is meant to match anything however it exposes undefined behaviour when _ is already bound to gnc:gettext. Solution for now is to omit the second _. --- gnucash/report/report-system/eguile-utilities.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/report/report-system/eguile-utilities.scm b/gnucash/report/report-system/eguile-utilities.scm index f3e3e49234..71c8fdf912 100644 --- a/gnucash/report/report-system/eguile-utilities.scm +++ b/gnucash/report/report-system/eguile-utilities.scm @@ -54,7 +54,7 @@ (define-public safe-cadr (match-lambda - ((_ x . _) x) + ((_ x . y) x) (_ '()))) (define-public (find-file fname)