diff options
| author | Tom Tromey | 2012-08-19 03:26:42 -0600 |
|---|---|---|
| committer | Tom Tromey | 2012-08-19 03:26:42 -0600 |
| commit | 9dad5e59e30c1b0d1047838048510f59552be492 (patch) | |
| tree | fb4bb014fa2e77d9e8d85439e5332e13910bf8b1 /src/thread.c | |
| parent | 3cbf5b1d3b7b9a89e1ef6b00a5ab91d58959f9ab (diff) | |
| download | emacs-9dad5e59e30c1b0d1047838048510f59552be492.tar.gz emacs-9dad5e59e30c1b0d1047838048510f59552be492.zip | |
ensure name of a thread is a string
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index 8fa43dd57f2..b8ffb0662c3 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -661,6 +661,9 @@ If NAME is given, it names the new thread. */) | |||
| 661 | if (!initialized) | 661 | if (!initialized) |
| 662 | abort (); | 662 | abort (); |
| 663 | 663 | ||
| 664 | if (!NILP (name)) | ||
| 665 | CHECK_STRING (name); | ||
| 666 | |||
| 664 | new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_gcprolist, | 667 | new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_gcprolist, |
| 665 | PVEC_THREAD); | 668 | PVEC_THREAD); |
| 666 | memset ((char *) new_thread + offsetof (struct thread_state, m_gcprolist), | 669 | memset ((char *) new_thread + offsetof (struct thread_state, m_gcprolist), |