]> git.eshelyaron.com Git - emacs.git/commitdiff
ensure name of a thread is a string
authorTom Tromey <tromey@redhat.com>
Sun, 19 Aug 2012 09:26:42 +0000 (03:26 -0600)
committerTom Tromey <tromey@redhat.com>
Sun, 19 Aug 2012 09:26:42 +0000 (03:26 -0600)
src/thread.c

index 8fa43dd57f2e6883724e9fe93ed525aa308ec862..b8ffb0662c30ca7cf01e556901c664793916e285 100644 (file)
@@ -661,6 +661,9 @@ If NAME is given, it names the new thread.  */)
   if (!initialized)
     abort ();
 
+  if (!NILP (name))
+    CHECK_STRING (name);
+
   new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_gcprolist,
                                      PVEC_THREAD);
   memset ((char *) new_thread + offsetof (struct thread_state, m_gcprolist),