summaryrefslogblamecommitdiff
path: root/graphics/utah-glx/files/patch-bb
blob: 55dde321512fe37ac3803bd60a7c8ff904c06ed3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                              
diff -druN servGL/hwglx/common/glx_symbols.c servGL/hwglx/common/glx_symbols.c
--- servGL/hwglx/common/glx_symbols.c	Wed Mar 22 07:25:59 2000
+++ servGL/hwglx/common/glx_symbols.c	Sun Nov  5 19:22:23 2000
@@ -187,9 +187,8 @@
 static void *my_dlsym(void *handle, const char *name)
 {
    void *tmp = dlsym(handle, name);
-   char *error;
-   if ((error = dlerror()) != 0) {
-      fprintf( stderr, "%s\n", error );
+   if (tmp == NULL) {
+      fputs( dlerror(), stderr );
       any_error = 1;
       return 0;
    }