blob: b89473c885b583ad354379d3053b5480b19e2738 (
plain) (
tree)
|
|
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;
}
|