summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-11 15:59:07 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-11 15:59:07 +0000
commit69b712410b663ebc1c14fd387a36443fba152178 (patch)
tree0d80b48ec459ab241a7e1af2b45ac09177dcd01e /ext/tidy
parent500f634db9330060208da2e6114c889e976f9b7d (diff)
downloadphp-git-69b712410b663ebc1c14fd387a36443fba152178.tar.gz
Reset opt_name to NULL to ensure it's not re-used if numeric keys can be
found inside the options array.
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tidy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index 1976f44d08..770562d18f 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -841,6 +841,7 @@ static int _php_tidy_apply_config_array(TidyDoc doc, HashTable *ht_options TSRML
if(opt_name) {
_php_tidy_set_tidy_opt(doc, opt_name, *opt_val TSRMLS_CC);
+ opt_name = NULL;
}
}