mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized
variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b1e5ba31c
commit
525b4535ca
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized
|
||||||
|
variable.
|
||||||
|
|
||||||
Thu Oct 9 16:34:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
Thu Oct 9 16:34:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/json/ext/generator/extconf.rb: fix target.
|
* ext/json/ext/generator/extconf.rb: fix target.
|
||||||
|
|
|
@ -192,11 +192,11 @@ syck_add_sym( SyckParser *p, void *data )
|
||||||
int
|
int
|
||||||
syck_lookup_sym( SyckParser *p, SYMID id, void **datap )
|
syck_lookup_sym( SyckParser *p, SYMID id, void **datap )
|
||||||
{
|
{
|
||||||
st_data_t data = (st_data_t)*datap;
|
st_data_t data;
|
||||||
int ret;
|
int ret;
|
||||||
if ( p->syms == NULL ) return 0;
|
if ( p->syms == NULL ) return 0;
|
||||||
ret = st_lookup( p->syms, id, &data );
|
ret = st_lookup( p->syms, id, &data );
|
||||||
*datap = (void *)data;
|
if(ret) *datap = (void *)data;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue