ruby-changes:47957
From: nobu <ko1@a...>
Date: Sat, 30 Sep 2017 18:07:18 +0900 (JST)
Subject: [ruby-changes:47957] nobu:r60072 (trunk): dbm.c: removed useless assignments
nobu 2017-09-30 18:07:13 +0900 (Sat, 30 Sep 2017) New Revision: 60072 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60072 Log: dbm.c: removed useless assignments Modified files: trunk/ext/dbm/dbm.c Index: ext/dbm/dbm.c =================================================================== --- ext/dbm/dbm.c (revision 60071) +++ ext/dbm/dbm.c (revision 60072) @@ -339,8 +339,6 @@ fdbm_key(VALUE obj, VALUE valstr) https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.c#L339 ExportStringValue(valstr); len = RSTRING_LEN(valstr); if (TOO_LONG(len)) return Qnil; - val.dptr = RSTRING_PTR(valstr); - val.dsize = (DSIZE_TYPE)len; GetDBM2(obj, dbmp, dbm); for (key = dbm_firstkey(dbm); key.dptr; key = dbm_nextkey(dbm)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/