Small fix for S48 bug.
This commit is contained in:
parent
902df6dc62
commit
59a757fccf
|
@ -64,7 +64,7 @@ dlsym(void *lib, char *name)
|
||||||
lasterror = "Bad library pointer passed to dlsym()";
|
lasterror = "Bad library pointer passed to dlsym()";
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
if (object_file == NULL) {
|
if (s48_object_file == NULL) {
|
||||||
lasterror = "I don't know the name of my executable";
|
lasterror = "I don't know the name of my executable";
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ dlsym(void *lib, char *name)
|
||||||
names[0].n_value = 0; /* for Linux */
|
names[0].n_value = 0; /* for Linux */
|
||||||
names[0].n_type = 0; /* for Linux */
|
names[0].n_type = 0; /* for Linux */
|
||||||
names[1].n_name = NULL;
|
names[1].n_name = NULL;
|
||||||
status = nlist(object_file, names);
|
status = nlist(s48_object_file, names);
|
||||||
#ifdef USCORE
|
#ifdef USCORE
|
||||||
if (tmp != buff)
|
if (tmp != buff)
|
||||||
free((void *)tmp);
|
free((void *)tmp);
|
||||||
|
|
Loading…
Reference in New Issue