]> granicus.if.org Git - apache/commitdiff
No need to test for NULL, apr_pstrndup already handles it.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 18 Jan 2014 15:07:38 +0000 (15:07 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 18 Jan 2014 15:07:38 +0000 (15:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1559351 13f79535-47bb-0310-9956-ffa450edef68

server/util_regex.c

index 9dcfc468248ecd44342da00da5b229ebd89c3653..81eac5308d28c8095209bdda1f6cb38ff972cd4b 100644 (file)
@@ -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);
 }