Skip to content

Commit 5632217

Browse files
author
Ilia Alshanetsky
committed
Removed deadcode found by Ron Korving
1 parent a055e93 commit 5632217

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/standard/string.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,10 +2995,6 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_
29952995
wlength = strlen(what);
29962996
}
29972997

2998-
if (!length) {
2999-
length = strlen(str);
3000-
}
3001-
30022998
php_charmask(what, wlength, flags TSRMLS_CC);
30032999

30043000
for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) {

0 commit comments

Comments
 (0)