Skip to content

Commit 2812553

Browse files
committed
Revert "Update re_operators.c"
This reverts commit 9c0d05f.
1 parent 6dafdb2 commit 2812553

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apache2/re_operators.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,10 +1545,10 @@ static const char *gsb_replace_tpath(apr_pool_t *pool, const char *domain, int l
15451545
url = apr_palloc(pool, len + 1);
15461546
data = apr_palloc(pool, len + 1);
15471547

1548-
data[0] = '\0';
1549-
1548+
memset(data, 0, len+1);
1549+
memset(url, 0, len+1);
1550+
15501551
memcpy(url, domain, len);
1551-
url[len] = 0;
15521552

15531553
while(( pos = strstr(url , "/./" )) != NULL) {
15541554
match = 1;

0 commit comments

Comments
 (0)