From 467c4314b873fe16c51441dd3083e13bdc5813c8 Mon Sep 17 00:00:00 2001 From: Jouni Ahto Date: Thu, 1 Jun 2000 14:56:28 +0000 Subject: [PATCH] (ucwords) Remove unnecessary code. # Didn't keep my promise to stop... --- ext/standard/string.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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++; } } } -- 2.50.1