diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 05:57:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-25 05:57:37 +0000 |
commit | 5cc2093ccd5c91fe2eeb0e9a7757985569eed1c2 (patch) | |
tree | e547d54ddfa2c6ec5f099351e375767d9d85ad93 /file.c | |
parent | 8366008bcf2e71002c7338f9400968ddac2aad40 (diff) | |
download | ruby-5cc2093ccd5c91fe2eeb0e9a7757985569eed1c2.tar.gz |
* hash.c (recursive_hash): remove unused local variable.
* parse.y (parser_yylex): ditto.
* parse.y (rb_gc_mark_symbols): fix unmatched prototype .
* file.c (rb_get_path): check NUL byte in the path string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -111,11 +111,10 @@ rb_get_path(VALUE obj) to_path = rb_intern("to_path"); } if (rb_respond_to(obj, to_path)) { - obj = rb_funcall(obj, to_path, 0, 0); + tmp = rb_funcall(obj, to_path, 0, 0); } - tmp = obj; - StringValueCStr(tmp); exit: + StringValueCStr(tmp); if (obj != tmp) { rb_check_safe_obj(tmp); } |