1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpgscm: Make exception handling more robust.

* tests/gpgscm/init.scm (throw'): Check that args is a list.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-12-19 15:25:52 +01:00
parent 026bbf0d5e
commit df00745d6e

View File

@ -597,7 +597,8 @@
(cond
((more-handlers?)
((pop-handler) message args history))
((and args (= 2 (length args)) (equal? *interpreter-exit* (car args)))
((and args (list? args) (= 2 (length args))
(equal? *interpreter-exit* (car args)))
(*run-atexit-handlers*)
(quit (cadr args)))
(else