]> granicus.if.org Git - php/commitdiff
MFB 5_2
authorRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 20:56:20 +0000 (20:56 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 20:56:20 +0000 (20:56 +0000)
ext/standard/string.c

index f3f2210cf2608197ac3c5f8cadccd47e6cc05ac5..f06c1be5786220babf2c68c60fb2937044df44d5 100644 (file)
@@ -4734,7 +4734,7 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_
 
        php_charmask((unsigned char*)what, wlength, flags TSRMLS_CC);
 
-       for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) {
+       for (source = str, end = source + length, target = new_str; source < end; source++) {
                if (flags[(unsigned char)c]) {
                        if ((unsigned char) c < 32 || (unsigned char) c > 126) {
                                *target++ = '\\';