summaryrefslogtreecommitdiffstats
path: root/graphics/utah-glx/files/patch-bc
blob: 1406dcf53638b47d4e3f34c648c4e88d788259a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -druN servGL/hwglx/common/x11_symbols.c servGL/hwglx/common/x11_symbols.c
--- servGL/hwglx/common/x11_symbols.c	Mon Jan 17 09:11:02 2000
+++ servGL/hwglx/common/x11_symbols.c	Sun Nov  5 19:22:44 2000
@@ -92,9 +92,8 @@
 static void *my_dlsym(void *handle, const char *name)
 {
    void *tmp = dlsym(handle, name);
-   char *error;
-   if ((error = dlerror()) != 0) {
-      fputs(error, stderr);
+   if (tmp == NULL) {
+      fputs(dlerror(), stderr);
       any_error = 1;
       return 0;
    }
OpenPOWER on IntegriCloud