From 962a1aeb28ac38019034e89ae4e87e515f3d25bd Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 10 Jul 2015 23:20:28 +0530 Subject: Avoid boolean coercion in tst-tls-atexit test case --- stdlib/tst-tls-atexit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib') diff --git a/stdlib/tst-tls-atexit.c b/stdlib/tst-tls-atexit.c index 68247d1748..7a69722490 100644 --- a/stdlib/tst-tls-atexit.c +++ b/stdlib/tst-tls-atexit.c @@ -36,7 +36,7 @@ load (void *u) { pthread_mutex_lock (&m); handle = dlopen ("$ORIGIN/tst-tls-atexit-lib.so", RTLD_LAZY); - if (!handle) + if (handle == NULL) { printf ("Unable to load DSO: %s\n", dlerror ()); return (void *) (uintptr_t) 1; @@ -44,7 +44,7 @@ load (void *u) void (*foo) (void) = (void (*) (void)) dlsym(handle, "do_foo"); - if (!foo) + if (foo == NULL) { printf ("Unable to find symbol: %s\n", dlerror ()); exit (1); -- cgit 1.4.1