about summary refs log tree commit diff
path: root/elf/lateglobal.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/lateglobal.c')
-rw-r--r--elf/lateglobal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/lateglobal.c b/elf/lateglobal.c
index 2f6c2692a6..4a1a7cd085 100644
--- a/elf/lateglobal.c
+++ b/elf/lateglobal.c
@@ -13,14 +13,14 @@ main (void)
   mtrace ();
 
   h[0] = dlopen ("ltglobmod1.so", RTLD_LAZY);
-  if (h == NULL)
+  if (h[0] == NULL)
     {
       printf ("%s: cannot open %s: %s",
 	      __FUNCTION__, "ltglobmod1.so", dlerror ());
       exit (EXIT_FAILURE);
     }
   h[1] = dlopen ("ltglobmod2.so", RTLD_LAZY);
-  if (h == NULL)
+  if (h[1] == NULL)
     {
       printf ("%s: cannot open %s: %s",
 	      __FUNCTION__, "ltglobmod2.so", dlerror ());