/* Adds new entry to iovec if previous additions were successful. */
#define IOVEC_ADD_LEN(FORMAT, VAR, LEN) \
if (rv == APR_SUCCESS && iov_size < MAX_ENTRIES) { \
- if ((rv = iovec_add_entry(subpool, &iov[iov_size], FORMAT, LEN, VAR)) \
- == APR_SUCCESS) \
- iov_size++; \
+ rv = iovec_add_entry(subpool, &iov[iov_size], FORMAT, LEN, VAR); \
+ if (rv == APR_SUCCESS) \
+ iov_size++; \
}
#define IOVEC_ADD(FORMAT, VAR) IOVEC_ADD_LEN(FORMAT, VAR, -1)
* we are allowed to use the prefix of in HTTP/1.1
*/
char *lang = ((char **) (variant->content_languages->elts))[j];
- int idx = -1;
+ int idx;
/* If we wish to fallback or
* we use our own LanguagePriority index.
apr_uri_t *uri,
char *url, char *server_portstr, char *scheme)
{
- apr_status_t rv = APR_SUCCESS;
+ apr_status_t rv;
apr_pollset_t *pollset;
apr_pollfd_t pollfd;
conn_rec *c = r->connection;
do {
const ap_expr_t *val = e2->node_arg1;
AP_DEBUG_ASSERT(e2->node_op == op_ListElement);
- if (strcmp(needle, ap_expr_eval_word(ctx, val)) == 0) {
+ if (strcmp(needle, ap_expr_eval_word(ctx, val)) == 0)
return 1;
- break;
- }
e2 = e2->node_arg2;
} while (e2 != NULL);
}