diff options
author | Stefan Fritsch <sf@apache.org> | 2011-06-22 22:45:34 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-06-22 22:45:34 +0200 |
commit | 51692222f63283f2a25be0988a976c0516b07d38 (patch) | |
tree | 4993c6933929622ca70e6b38e084971ddc9af618 /modules/mappers | |
parent | We already have ap_str_tolower(), so also add ap_str_toupper() function and use (diff) | |
download | apache2-51692222f63283f2a25be0988a976c0516b07d38.tar.xz apache2-51692222f63283f2a25be0988a976c0516b07d38.zip |
Various code cleanup
PR: 51398
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers')
-rw-r--r-- | modules/mappers/mod_rewrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index f7f02b582d..cd14687afb 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -1759,7 +1759,7 @@ static char *lookup_variable(char *var, rewrite_ctx *ctx) /* fast exit */ if (varlen < 4) { - return apr_pstrdup(r->pool, ""); + return ""; } result = NULL; @@ -2211,7 +2211,7 @@ static char *do_expand(char *input, rewrite_ctx *ctx, rewriterule_entry *entry) /* fast exit */ if (inputlen == span) { - return apr_pstrdup(pool, input); + return apr_pstrmemdup(pool, input, inputlen); } /* well, actually something to do */ |