From 0b9ee2cf009b9a1cf4c2915709e3789cc5f40e0f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 16 Jan 2015 19:19:14 +0100 Subject: [PATCH] unix: fix long line introduced in commit 94e628fa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/150 Reviewed-By: Saúl Ibarra Corretgé --- src/unix/darwin-proctitle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unix/darwin-proctitle.c b/src/unix/darwin-proctitle.c index cbb7ea42..11423116 100644 --- a/src/unix/darwin-proctitle.c +++ b/src/unix/darwin-proctitle.c @@ -37,7 +37,9 @@ static int uv__pthread_setname_np(const char* name) { int err; /* pthread_setname_np() first appeared in OS X 10.6 and iOS 3.2. */ - *(void **)(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np"); + *(void **)(&dynamic_pthread_setname_np) = + dlsym(RTLD_DEFAULT, "pthread_setname_np"); + if (dynamic_pthread_setname_np == NULL) return -ENOSYS;