]> granicus.if.org Git - php/commitdiff
Reset opt_name to NULL to ensure it's not re-used if numeric keys can be
authorIlia Alshanetsky <iliaa@php.net>
Tue, 11 May 2004 15:59:07 +0000 (15:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 11 May 2004 15:59:07 +0000 (15:59 +0000)
found inside the options array.

ext/tidy/tidy.c

index 1976f44d088c362dd5562e1fc1948ec07cba46f7..770562d18f0f4626b0260160128ea29df3457893 100644 (file)
@@ -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;
                }
                                        
        }