mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-08-13 14:35:00 -05:00
Bug #531662: Harden budget->guid to grok #f input instead of crashing.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17256 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -312,9 +312,9 @@
|
||||
documentation-string)
|
||||
|
||||
(define (budget->guid budget)
|
||||
(if (string? budget)
|
||||
budget
|
||||
(gncBudgetGetGUID budget)))
|
||||
(cond ((eq? budget #f) #f)
|
||||
((string? budget) budget)
|
||||
(t (gncBudgetGetGUID budget))))
|
||||
|
||||
(define (guid->budget budget)
|
||||
(if (string? budget)
|
||||
|
||||
Reference in New Issue
Block a user