forked from Lainports/freebsd-ports
16 lines
471 B
Text
16 lines
471 B
Text
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;
|
|
}
|