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














                                                                                      
diff -druN servGL/hwglx/s3virge/s3virgesymbols.c servGL/hwglx/s3virge/s3virgesymbols.c
--- servGL/hwglx/s3virge/s3virgesymbols.c	Sun Jan 16 03:22:47 2000
+++ servGL/hwglx/s3virge/s3virgesymbols.c	Sun Nov  5 19:19:36 2000
@@ -24,9 +24,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;
    }