mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-13 21:02:47 -08:00
It is necessary to check that the right symbol is being processed by UNEXPORT2, because blindly proceeding causes slight corruption of the package structure and may result in quite cryptic error messages in loosely connected pieces of code (A. Gavrilov)
This commit is contained in:
parent
062f864ab8
commit
cdc6ea3363
1 changed files with 1 additions and 1 deletions
|
|
@ -554,7 +554,7 @@ cl_unexport2(cl_object s, cl_object p)
|
|||
"Ignore lock and proceed", p, 2, s, p);
|
||||
PACKAGE_OP_LOCK();
|
||||
x = find_symbol_inner(name, p, &intern_flag);
|
||||
if (intern_flag == 0) {
|
||||
if (intern_flag == 0 || x != s) {
|
||||
PACKAGE_OP_UNLOCK();
|
||||
FEpackage_error("Cannot unexport ~S because it does not belong to package ~S.",
|
||||
p, 2, s, p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue