From 07d887be94b179a2bd0cd707a076e9517181102d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Apr 2007 13:49:06 -0400 Subject: Avoid compiler warnings. --- mysys/my_thr_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mysys/my_thr_init.c') diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c index da465385b3e..07a92e34dd3 100644 --- a/mysys/my_thr_init.c +++ b/mysys/my_thr_init.c @@ -82,9 +82,9 @@ my_bool my_thread_global_init(void) int pth_ret; thd_lib_detected= get_thread_lib(); - if (pth_ret= pthread_key_create(&THR_KEY_mysys, NULL)) + if ((pth_ret= pthread_key_create(&THR_KEY_mysys, NULL)) != 0) { - fprintf(stderr,"Can't initialize threads: pthread error %d\n", pth_ret); + fprintf(stderr,"Can't initialize threads: error %d\n", pth_ret); return 1; } -- cgit v1.2.1