1
0
Fork 0
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:
mame 2008-10-09 12:18:42 +00:00
parent 3b1e5ba31c
commit 525b4535ca
2 changed files with 7 additions and 2 deletions

View file

@ -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>
* ext/json/ext/generator/extconf.rb: fix target.

View file

@ -192,11 +192,11 @@ syck_add_sym( SyckParser *p, void *data )
int
syck_lookup_sym( SyckParser *p, SYMID id, void **datap )
{
st_data_t data = (st_data_t)*datap;
st_data_t data;
int ret;
if ( p->syms == NULL ) return 0;
ret = st_lookup( p->syms, id, &data );
*datap = (void *)data;
if(ret) *datap = (void *)data;
return ret;
}