8611b700ac
dlerror(3) holds the value of the LAST dlsym(3) error. It does not tell if an error occured in the last dlsym(3) call. It could have happened before. o Bump PORTREVISION Submitted by: nectar
11 lines
313 B
C
11 lines
313 B
C
--- src/my_glade.c.orig Sat May 10 23:43:23 2003
|
|
+++ src/my_glade.c Sat May 10 23:45:47 2003
|
|
@@ -39,7 +39,7 @@
|
|
|
|
fun = dlsym(handle, new_symbol);
|
|
error = dlerror();
|
|
- if(error != NULL) {
|
|
+ if(fun == NULL) {
|
|
fprintf(stderr, "Error during dlsym of %s: %s\n", new_symbol, error);
|
|
gtk_exit(1);
|
|
}
|