summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Ahto <jah@php.net>2000-06-01 14:56:28 +0000
committerJouni Ahto <jah@php.net>2000-06-01 14:56:28 +0000
commit467c4314b873fe16c51441dd3083e13bdc5813c8 (patch)
tree7db86192f8e6c15102f3d0814cffb38a215a4c00
parentc106ab8ba069bb507ade639a12c106bfe63b6a65 (diff)
downloadphp-git-467c4314b873fe16c51441dd3083e13bdc5813c8.tar.gz
(ucwords) Remove unnecessary code.
# Didn't keep my promise to stop...
-rw-r--r--ext/standard/string.c5
1 files changed, 1 insertions, 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++;
}
}
}