]> granicus.if.org Git - php/commitdiff
Removed deadcode found by Ron Korving
authorIlia Alshanetsky <iliaa@php.net>
Wed, 13 Dec 2006 15:39:12 +0000 (15:39 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 13 Dec 2006 15:39:12 +0000 (15:39 +0000)
ext/standard/string.c

index d7f4b62324a351a1df6570efa1bb7067b33192f6..4221be91f434d62c34f3933d0fa030faad576c4b 100644 (file)
@@ -2995,10 +2995,6 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_
                wlength = strlen(what);
        }
 
-       if (!length) {
-               length = strlen(str);
-       }
-
        php_charmask(what, wlength, flags TSRMLS_CC);
 
        for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) {