ruby-changes:56503
From: Yusuke <ko1@a...>
Date: Sun, 14 Jul 2019 23:20:59 +0900 (JST)
Subject: [ruby-changes:56503] Yusuke Endoh: 3fd086ed56 (master): string.c (str_succ): remove a unnecessary assignment
https://git.ruby-lang.org/ruby.git/commit/?id=3fd086ed56 From 3fd086ed565e6156db5e64a5c42469db331a6237 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 14 Jul 2019 23:04:16 +0900 Subject: string.c (str_succ): remove a unnecessary assignment This change will suppress Coverity Scan warnings diff --git a/string.c b/string.c index 64bb609..aadc725 100644 --- a/string.c +++ b/string.c @@ -4142,7 +4142,6 @@ str_succ(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L4142 if (neighbor == NEIGHBOR_NOT_CHAR && last_alnum) { if (ISALPHA(*last_alnum) ? ISDIGIT(*s) : ISDIGIT(*last_alnum) ? ISALPHA(*s) : 0) { - s = last_alnum; break; } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/