]> granicus.if.org Git - php/commitdiff
Uh, only meant to remove the null check, not the assignment
authorRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 21:29:27 +0000 (21:29 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 24 May 2007 21:29:27 +0000 (21:29 +0000)
ext/standard/string.c

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