removed compile warnings
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Thu, 26 Jan 2006 02:29:33 +0000 (02:29 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Thu, 26 Jan 2006 02:29:33 +0000 (02:29 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@510 7f574dfc-610e-0410-a909-a81674777703

src/xmms.c

index 47633ce..68080e9 100644 (file)
@@ -219,10 +219,10 @@ void *xmms_thread_func_dynamic(void *pvoid)
 
     case (PROJECT_XMMS) :
            /* make an effort to find the glib 1.2 shared lib */
-           glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY) ||
-                              dlopen("libglib12.so", RTLD_LAZY) ||
-                              dlopen("libglib.so", RTLD_LAZY);
-           if (!glib_v1_2_handle) {
+           if ( ((glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY))==NULL) &&
+                ((glib_v1_2_handle = dlopen("libglib12.so", RTLD_LAZY))==NULL) &&
+                ((glib_v1_2_handle = dlopen("libglib.so", RTLD_LAZY))==NULL) )
+           {
                ERR("unable to find glib 1.2 shared object lib!");
                pthread_exit(NULL);
            }