OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 07:28:23 +0000 (07:28 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 07:28:23 +0000 (07:28 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@323 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_chtml10.c
src/chxj_hdml.c

index f9fa694..1409e5b 100644 (file)
@@ -1498,8 +1498,7 @@ s_chtml10_start_option_tag(chtml10_t* chtml10, Node* child)
     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                                                */
       /*----------------------------------------------------------------------*/
index 8edcec5..5c5fe74 100644 (file)
@@ -130,8 +130,7 @@ chxj_exchange_hdml(request_rec* r,
   /* 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.                                                     */