]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix building with check-lisp-object-type
authorEli Zaretskii <eliz@gnu.org>
Sat, 10 Dec 2016 09:06:23 +0000 (11:06 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Dec 2016 09:06:23 +0000 (11:06 +0200)
* src/thread.c (mark_one_thread): Use NILP to compare with
m_saved_last_thing_searched, which is a Lisp object.  Reported by
Andreas Politz <politza@hochschule-trier.de>.

src/thread.c

index dda262984c0a9b8c0b89a3ab37c4ef0fc134ff95..b2f8561f923f05044ecee17d1d95f7a441a7b97a 100644 (file)
@@ -540,7 +540,7 @@ mark_one_thread (struct thread_state *thread)
 
   mark_object (thread->m_last_thing_searched);
 
-  if (thread->m_saved_last_thing_searched)
+  if (!NILP (thread->m_saved_last_thing_searched))
     mark_object (thread->m_saved_last_thing_searched);
 }