File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -666,17 +666,16 @@ static void tidy_add_node_default_properties(PHPTidyObj *obj)
666
666
tempattr = tidyAttrFirst (obj -> node );
667
667
668
668
if (tempattr ) {
669
- const char * name , * val ;
670
669
array_init (& attribute );
671
670
672
671
do {
673
- name = ( const char * ) tidyAttrName (tempattr );
674
- val = ( const char * ) tidyAttrValue ( tempattr );
675
- if ( name ) {
672
+ const char * attr_name = tidyAttrName (tempattr );
673
+ if ( attr_name ) {
674
+ const char * val = tidyAttrValue ( tempattr );
676
675
if (val ) {
677
- add_assoc_string (& attribute , name , val );
676
+ add_assoc_string (& attribute , attr_name , val );
678
677
} else {
679
- add_assoc_str (& attribute , name , zend_empty_string );
678
+ add_assoc_str (& attribute , attr_name , zend_empty_string );
680
679
}
681
680
}
682
681
} while ((tempattr = tidyAttrNext (tempattr )));
You can’t perform that action at this time.
0 commit comments