]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
reverse conditional in new module load code
authorRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2007 20:22:03 +0000 (16:22 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2007 20:22:03 +0000 (16:22 -0400)
src/ply-utils.c

index 2136f4bb456305e13ec0d61c19399bde6479f3b3..4f5821fcf0a02fd2a1e0ac76b87a7d198359bf27 100644 (file)
@@ -610,7 +610,7 @@ ply_module_look_up_function (ply_module_handle_t *handle,
   dlerror ();
   function = (ply_module_function_t) dlsym (handle, function_name);
 
-  if (dlerror () == NULL)
+  if (dlerror () != NULL)
     {
       if (errno == 0)
         errno = ELIBACC;