summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 56981b0778..1255e8c4d8 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -3016,7 +3016,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; (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++ = '\\';