diff options
Diffstat (limited to 'src')
| -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 83f25e8d462..8fa43dd57f2 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -185,6 +185,9 @@ informational only. */) | |||
| 185 | struct Lisp_Mutex *mutex; | 185 | struct Lisp_Mutex *mutex; |
| 186 | Lisp_Object result; | 186 | Lisp_Object result; |
| 187 | 187 | ||
| 188 | if (!NILP (name)) | ||
| 189 | CHECK_STRING (name); | ||
| 190 | |||
| 188 | mutex = ALLOCATE_PSEUDOVECTOR (struct Lisp_Mutex, mutex, PVEC_MUTEX); | 191 | mutex = ALLOCATE_PSEUDOVECTOR (struct Lisp_Mutex, mutex, PVEC_MUTEX); |
| 189 | memset ((char *) mutex + offsetof (struct Lisp_Mutex, mutex), | 192 | memset ((char *) mutex + offsetof (struct Lisp_Mutex, mutex), |
| 190 | 0, sizeof (struct Lisp_Mutex) - offsetof (struct Lisp_Mutex, | 193 | 0, sizeof (struct Lisp_Mutex) - offsetof (struct Lisp_Mutex, |