summaryrefslogtreecommitdiffstats
path: root/server/util_regex.c
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2014-01-18 16:07:38 +0100
committerChristophe Jaillet <jailletc36@apache.org>2014-01-18 16:07:38 +0100
commit4719522d987d3e243c507d6a6377df5f65a1a516 (patch)
tree85ad91da62da07f40ce26614d0c7a2a0e05cd440 /server/util_regex.c
parentmod_ssl: Do not print content of SSL CA directories during -DDUMP_CA_CERTS, make (diff)
downloadapache2-4719522d987d3e243c507d6a6377df5f65a1a516.tar.xz
apache2-4719522d987d3e243c507d6a6377df5f65a1a516.zip
No need to test for NULL, apr_pstrndup already handles it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1559351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_regex.c')
-rw-r--r--server/util_regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/util_regex.c b/server/util_regex.c
index 9dcfc46824..81eac5308d 100644
--- a/server/util_regex.c
+++ b/server/util_regex.c
@@ -205,5 +205,5 @@ AP_DECLARE(char*) ap_rxplus_pmatch(apr_pool_t *pool, ap_rxplus_t *rx, int n)
int len;
const char *match;
ap_rxplus_match(rx, n, &len, &match);
- return (match != NULL) ? apr_pstrndup(pool, match, len) : NULL;
+ return apr_pstrndup(pool, match, len);
}