cmp: prevent spurious error when the compile function fails

This commit is contained in:
Marius Gerbershagen 2018-11-24 17:58:30 +01:00
parent abf33455f6
commit 71babf1f99

View file

@ -829,7 +829,7 @@ after compilation."
(cmp-delete-file h-pathname)
(cmp-delete-file so-pathname)
(mapc 'cmp-delete-file tmp-names)
(let ((output (or name (symbol-value 'GAZONK))))
(let ((output (or name (and (boundp 'GAZONK) (symbol-value 'GAZONK)))))
;; By unsetting GAZONK we avoid spurious references to the
;; loaded code.
(set 'GAZONK nil)