From 368d4a0d0a14559cf1c29a012bd52596d890b3c4 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Wed, 3 Sep 1997 05:39:58 +0200
Subject: [PATCH] Added error message for bogus key objects to threads.c

Rev: src/threads.c:1.29
---
 src/threads.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/threads.c b/src/threads.c
index dba3beb649..54658718dd 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -1,5 +1,5 @@
 #include "global.h"
-RCSID("$Id: threads.c,v 1.28 1997/09/02 22:18:07 grubba Exp $");
+RCSID("$Id: threads.c,v 1.29 1997/09/03 03:39:58 per Exp $");
 
 int num_threads = 1;
 int threads_disabled = 0;
@@ -324,6 +324,9 @@ void f_cond_wait(INT32 args)
     
     mt_lock(&mutex_kluge);
     mut=OB2KEY(key)->mut;
+    if(!mut)
+      error("Bad argument 1 to condition->wait()\n");
+
     THREADS_ALLOW();
 
     /* Unlock mutex */
-- 
GitLab