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















                                                                            
diff -druN servGL/hwglx/s3savage/s3savglx.c servGL/hwglx/s3savage/s3savglx.c
--- servGL/hwglx/s3savage/s3savglx.c	Sun Aug 20 08:50:25 2000
+++ servGL/hwglx/s3savage/s3savglx.c	Sun Nov  5 19:20:54 2000
@@ -83,10 +83,9 @@
 my_dlsym(void *handle, const char *name)
 {
  void *tmp = dlsym(handle, name);
- char *error;
-if ((error = dlerror()) != 0) 
+ if (tmp == NULL)
    {
-    fputs(error, stderr);
+    fputs(dlerror(), stderr);
     any_error = 1;
     return 0;
    }