blob: cdb0dada01f26854148ceed3566f7b97d1663760 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff -druN servGL/hwglx/nv/riva_symbols.c servGL/hwglx/nv/riva_symbols.c
--- servGL/hwglx/nv/riva_symbols.c Sun Feb 13 22:02:30 2000
+++ servGL/hwglx/nv/riva_symbols.c Sun Nov 5 19:19:04 2000
@@ -29,9 +29,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;
}
|