summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 6a88b3bd9d..1897610d6c 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -37,7 +37,7 @@ PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_arra
if (PG(magic_quotes_gpc)) {
new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len, &new_entry.value.str.len, 0);
} else {
- strval = estrndup(strval, new_entry.value.str.len);
+ new_entry.value.str.val = estrndup(strval, new_entry.value.str.len);
}
new_entry.type = IS_STRING;