W_L("\"");
}
if (attr_value) {
- if (STRCASEEQ('s','S',"submit",attr_type) || STRCASEEQ('r','R',"reset",attr_type)) {
+ if (attr_type && (STRCASEEQ('s','S',"submit",attr_type) || STRCASEEQ('r','R',"reset",attr_type))) {
apr_size_t value_len = strlen(attr_value);
attr_value = chxj_conv_z2h(r, attr_value, &value_len, chtml20->entryp);
}