mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()
before calling dlsym(). [ruby-dev:44091] [Bug #5021] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e0907cedd
commit
13f62a384b
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 20 15:16:22 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()
|
||||
before calling dlsym(). [ruby-dev:44091] [Bug #5021]
|
||||
|
||||
Wed Jul 20 07:16:26 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* NEWS: mention Kernel#warn. [ruby-core:38119] [Feature #5029]
|
||||
|
|
|
@ -305,6 +305,9 @@ dlhandle_sym(void *handle, const char *name)
|
|||
void (*func)();
|
||||
|
||||
rb_secure(2);
|
||||
#ifdef HAVE_DLERROR
|
||||
dlerror();
|
||||
#endif
|
||||
func = (void (*)())(VALUE)dlsym(handle, name);
|
||||
CHECK_DLERROR;
|
||||
#if defined(FUNC_STDCALL)
|
||||
|
|
Loading…
Add table
Reference in a new issue