From 3c6cf62cbb81b428acf61c5ee730344d9959042c Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Oct 2008 16:26:53 +0000 Subject: * transcode.c (transcode_restartable0): in_pos and out_pos never be NULL, now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ transcode.c | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 877a7dff5..73ab994aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 17 01:26:09 2008 Tanaka Akira + + * transcode.c (transcode_restartable0): in_pos and out_pos never be + NULL, now. + Fri Oct 17 00:39:19 2008 Yusuke Endoh * lib/test/unit.rb: sort the order of executing tests. diff --git a/transcode.c b/transcode.c index 6ef354446..5031d4998 100644 --- a/transcode.c +++ b/transcode.c @@ -437,19 +437,6 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos, unsigned char *out_p; - unsigned char empty_buf; - unsigned char *empty_ptr = &empty_buf; - - if (!in_pos) { - in_pos = (const unsigned char **)&empty_ptr; - in_stop = empty_ptr; - } - - if (!out_pos) { - out_pos = &empty_ptr; - out_stop = empty_ptr; - } - in_p = inchar_start = *in_pos; out_p = *out_pos; -- cgit