summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-02-21 12:13:27 +0000
committerThies C. Arntzen <thies@php.net>2000-02-21 12:13:27 +0000
commit361ae6886e6cda3fc786b36bcb6bc149267340a0 (patch)
treebef8943c5e3dc52f74bdef78e3cf7685c535ebd2 /main/php_variables.c
parentef1ea9c895d1b9405bfe2e996fb5d1267a452eac (diff)
downloadphp-git-361ae6886e6cda3fc786b36bcb6bc149267340a0.tar.gz
@- Fixed crash when magic_quotes were switched off. (Thies)
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;