提交 e9a583aa 编写于 作者: R Richard Levitte

Pointer error corrected

上级 f3f316f1
...@@ -187,7 +187,7 @@ static void *dl_bind_var(DSO *dso, const char *symname) ...@@ -187,7 +187,7 @@ static void *dl_bind_var(DSO *dso, const char *symname)
DSOerr(DSO_F_DL_BIND_VAR,DSO_R_NULL_HANDLE); DSOerr(DSO_F_DL_BIND_VAR,DSO_R_NULL_HANDLE);
return(NULL); return(NULL);
} }
if (shl_findsym(ptr, symname, TYPE_UNDEFINED, &sym) < 0) if (shl_findsym(&ptr, symname, TYPE_UNDEFINED, &sym) < 0)
{ {
DSOerr(DSO_F_DL_BIND_VAR,DSO_R_SYM_FAILURE); DSOerr(DSO_F_DL_BIND_VAR,DSO_R_SYM_FAILURE);
return(NULL); return(NULL);
...@@ -216,7 +216,7 @@ static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname) ...@@ -216,7 +216,7 @@ static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname)
DSOerr(DSO_F_DL_BIND_FUNC,DSO_R_NULL_HANDLE); DSOerr(DSO_F_DL_BIND_FUNC,DSO_R_NULL_HANDLE);
return(NULL); return(NULL);
} }
if (shl_findsym(ptr, symname, TYPE_UNDEFINED, &sym) < 0) if (shl_findsym(&ptr, symname, TYPE_UNDEFINED, &sym) < 0)
{ {
DSOerr(DSO_F_DL_BIND_FUNC,DSO_R_SYM_FAILURE); DSOerr(DSO_F_DL_BIND_FUNC,DSO_R_SYM_FAILURE);
return(NULL); return(NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册