You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2014/01/18 16:07:39 UTC

svn commit: r1559351 - /httpd/httpd/trunk/server/util_regex.c

Author: jailletc36
Date: Sat Jan 18 15:07:38 2014
New Revision: 1559351

URL: http://svn.apache.org/r1559351
Log:
No need to test for NULL, apr_pstrndup already handles it.

Modified:
    httpd/httpd/trunk/server/util_regex.c

Modified: httpd/httpd/trunk/server/util_regex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_regex.c?rev=1559351&r1=1559350&r2=1559351&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_regex.c (original)
+++ httpd/httpd/trunk/server/util_regex.c Sat Jan 18 15:07:38 2014
@@ -205,5 +205,5 @@ AP_DECLARE(char*) ap_rxplus_pmatch(apr_p
     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);
 }