git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@323
1a406e8e-add9-4483-a2c8-
d8cac5b7c224
char* nm = qs_get_attr_name(doc,attr);
char* val = qs_get_attr_value(doc,attr);
- if (strcasecmp(nm, "selected") == 0)
- {
+ if ((*nm == 's' || *nm == 'S') && strcasecmp(nm, "selected") == 0) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 version 2.0 */
/*----------------------------------------------------------------------*/
/* anything when is. */
/*--------------------------------------------------------------------------*/
buf = (char*)apr_table_get(r->headers_out, (const char*)"Location");
- if (buf != NULL)
- {
+ if (buf) {
/*------------------------------------------------------------------------*/
/* The Location header generates tag in an initial HDML machine for the */
/* uncorrespon dence. */