From b1cf76c682003ec412a0da6106c34011f5be4681 Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Mon, 21 May 2007 02:45:52 +0000
Subject: [PATCH] typo

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@59 a93c3328-9c30-0410-af19-c9cd2b2d52af
---
 libs/freetdm/src/zap_threadmutex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/freetdm/src/zap_threadmutex.c b/libs/freetdm/src/zap_threadmutex.c
index 4f9db6c1a6..c05a95c260 100644
--- a/libs/freetdm/src/zap_threadmutex.c
+++ b/libs/freetdm/src/zap_threadmutex.c
@@ -110,7 +110,7 @@ zap_status_t zap_thread_create_detached_ex(zap_thread_function_t func, void *dat
 
 	if (pthread_attr_setdetachstate(&thread->attribute, PTHREAD_CREATE_DETACHED) != 0) goto fail;
 
-	if (stacksize && pthread_attr_setstacksize(&thread->attribute, thread->stack_size) != 0) goto fail;
+	if (thread->stack_size && pthread_attr_setstacksize(&thread->attribute, thread->stack_size) != 0) goto fail;
 
 	if (pthread_create(&thread->handle, &thread->attribute, thread_launch, thread) != 0) goto fail;