diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2007-05-24 21:29:27 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2007-05-24 21:29:27 +0000 |
commit | 2fba3bf13b02b2c46ed8bf522c7757038f6c06e6 (patch) | |
tree | 70163fb2c4ebad2b817a00b4e08b319438b59de3 | |
parent | 61b06f1527832ce151de9156766edbdc91949864 (diff) | |
download | php-git-2fba3bf13b02b2c46ed8bf522c7757038f6c06e6.tar.gz |
Uh, only meant to remove the null check, not the assignment
-rw-r--r-- | ext/standard/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 1255e8c4d8..698cbd8ea9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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++ = '\\'; |