From c08d5e5ab888de98e6196b3b7488f3d709a7c5ec Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Tue, 1 Feb 2011 15:35:00 +0000
Subject: [PATCH] Fix typo.  The check for whether we were trying to use
 encapsulation to trace a local function was checking for the wrong thing.

---
 code/ntrace.lisp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/code/ntrace.lisp b/code/ntrace.lisp
index 802dd17dd..bae6a191a 100644
--- a/code/ntrace.lisp
+++ b/code/ntrace.lisp
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ntrace.lisp,v 1.46 2010/04/20 17:57:45 rtoy Rel $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ntrace.lisp,v 1.47 2011/02/01 15:35:00 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -515,9 +515,9 @@
 	(unless named
 	  (error (intl:gettext "Can't use encapsulation to trace anonymous function ~S.")
 		 fun))
-	(when (listp fun)
+	(when (listp function-or-name)
 	  (error (intl:gettext "Can't use encapsulation to trace local flet/labels function ~S.")
-		 fun))
+		 function-or-name))
 	(fwrap function-or-name #'trace-fwrapper :type 'trace
 	       :user-data info))
        (t
-- 
GitLab