From: Christophe Jaillet Date: Sat, 18 Jan 2014 15:07:38 +0000 (+0000) Subject: No need to test for NULL, apr_pstrndup already handles it. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=add24e3512fc963b9a781cd014058aa663c1db2a;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/util_regex.c b/server/util_regex.c index 9dcfc468248..81eac5308d2 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); }