Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@71977 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Jan 15, 2017
1 parent 155de04 commit 5ffc305
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/unix/dynload.c
Expand Up @@ -201,6 +201,11 @@ static int computeDLOpenFlag(int asLocal, int now)
This is the system/OS-specific version for resolving a
symbol in a shared object. A cast would not be legal C.
*/
/*
We are not interested in NULL symbols in the shared object.
If we were, this would need to use dlerror() before and after
dlsym, and check the second value is NULL.
*/
typedef union {void *p; DL_FUNC fn;} fn_ptr;
static DL_FUNC R_local_dlsym(DllInfo *info, char const *name)
{
Expand Down

0 comments on commit 5ffc305

Please sign in to comment.