From 1276387c24165bcc981a4350fe2b4e35e86d84fd Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 18 Oct 2012 12:48:27 -0400 Subject: [PATCH] fix segfault --- libs/apr/threadproc/unix/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/apr/threadproc/unix/thread.c b/libs/apr/threadproc/unix/thread.c index 6c6ff8b842..786f83069e 100644 --- a/libs/apr/threadproc/unix/thread.c +++ b/libs/apr/threadproc/unix/thread.c @@ -175,7 +175,7 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new, if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) { #ifndef __APPLE__ - if (attr->priority) { + if (attr && attr->priority) { pthread_t *thread = (*new)->td; pthread_setschedprio(*thread, attr->priority); }