selected = apr_pstrdup(r->pool, val);
}
else
- if (strcasecmp(nm, "value") == 0)
- {
+ if ((*nm == 'v' || *nm == 'V') && strcasecmp(nm, "value") == 0) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 version 2.0 */
/*----------------------------------------------------------------------*/
);
dst = apr_pstrdup(r->pool, hdml.out);
}
- else
- {
+ else {
/*------------------------------------------------------------------------*/
/* Here, the parsing of the received character string is done */
/*------------------------------------------------------------------------*/
/* When there is no processing result, former character string is copied */
/* and it returns it. */
/*--------------------------------------------------------------------------*/
- if (dst == NULL)
- {
+ if (!dst) {
*dstlen = srclen;
return apr_pstrdup(r->pool,src);
}
/* Null is set at the end of the character string to make sure. */
/*--------------------------------------------------------------------------*/
dst[hdml.out_len] = 0;
+
return dst;
}