aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2015-07-10 23:20:28 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-07-10 23:21:32 +0530
commit962a1aeb28ac38019034e89ae4e87e515f3d25bd (patch)
treed349b297f28988d7f5d761eec3f27d45f51a5df9 /stdlib
parent1aa8d144f971a907950014177d7e150fe82b83b0 (diff)
downloadglibc-962a1aeb28ac38019034e89ae4e87e515f3d25bd.zip
glibc-962a1aeb28ac38019034e89ae4e87e515f3d25bd.tar.gz
glibc-962a1aeb28ac38019034e89ae4e87e515f3d25bd.tar.bz2
Avoid boolean coercion in tst-tls-atexit test case
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-tls-atexit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/tst-tls-atexit.c b/stdlib/tst-tls-atexit.c
index 68247d1..7a69722 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);