From: Ilia Alshanetsky Date: Tue, 11 May 2004 15:59:07 +0000 (+0000) Subject: Reset opt_name to NULL to ensure it's not re-used if numeric keys can be X-Git-Tag: RELEASE_0_1~229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69b712410b663ebc1c14fd387a36443fba152178;p=php Reset opt_name to NULL to ensure it's not re-used if numeric keys can be found inside the options array. --- 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; } }