mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06: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:
parent
cfafaf8e57
commit
ea76d79aba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user