diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-30 10:42:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-30 10:42:09 +0000 |
commit | e8550265002a53f0a7e736aeb6b9b711b6bacfab (patch) | |
tree | 313b9622abf265d1e91ca27f9b8becaae738ce6f /ext/nkf | |
parent | f5f30e580f90e2022f2c32935d5ba0e1eb00f1ed (diff) | |
download | ruby-e8550265002a53f0a7e736aeb6b9b711b6bacfab.tar.gz |
* ext/Win32API/Win32API.c (Win32API_Call): RSTRING()->ptr may be
NULL.
* ext/nkf/nkf.c (rb_nkf_guess): ditto.
* ext/readline/readline.c (readline_s_set_completion_append_character):
ditto.
* ext/socket/socket.c (sock_s_getaddrinfo, sock_s_getnameinfo):
ditto.
* ext/tcltklib/tcltklib.c (ip_toUTF8, ip_fromUTF8): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf')
-rw-r--r-- | ext/nkf/nkf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c index 50723467cd..c71a5119aa 100644 --- a/ext/nkf/nkf.c +++ b/ext/nkf/nkf.c @@ -104,6 +104,7 @@ rb_nkf_guess(obj, src) StringValue(src); p = RSTRING(src)->ptr; pend = p + RSTRING(src)->len; + if (p == pend) return INT2FIX(_UNKNOWN); #define INCR do {\ p++;\ |