mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
16 lines
517 B
Plaintext
16 lines
517 B
Plaintext
|
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;
|
||
|
}
|