From: Jouni Ahto Date: Thu, 1 Jun 2000 14:56:28 +0000 (+0000) Subject: (ucwords) Remove unnecessary code. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=467c4314b873fe16c51441dd3083e13bdc5813c8;p=php (ucwords) Remove unnecessary code. # Didn't keep my promise to stop... --- diff --git a/ext/standard/string.c b/ext/standard/string.c index da8f1d96b6..db1d6909bf 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1154,11 +1154,8 @@ PHP_FUNCTION(ucwords) r=return_value->value.str.val; *r=toupper((unsigned char)*r); for(r_end = r + return_value->value.str.len - 1 ; r < r_end ; ) { - if(isspace((int)*r)) { - r++; + if(isspace((int)*r++)) { *r=toupper((unsigned char)*r); - } else { - r++; } } }