--- apr_uri.c.orig Sun Aug 19 18:17:42 2001
+++ apr_uri.c Fri Nov 23 00:00:57 2001
@@ -230,7 +230,7 @@
* can be called more than once per request.
*/
memset (uptr, '\0', sizeof(*uptr));
- uptr->is_initialized = 1;
+ uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
/* We assume the processor has a branch predictor like most --
* it assumes forward branches are untaken and backwards are taken. That's
@@ -353,7 +353,7 @@
* can be called more than once per request.
*/
memset (uptr, '\0', sizeof(*uptr));
- uptr->is_initialized = 1;
+ uptr->is_initialized = APR_URI_FLAG_IS_INITIALIZED;
uptr->hostinfo = apr_pstrdup(p, hostinfo);
/* We expect hostinfo to point to the first character of
Sorry, forgot to change variable name in apr_uri.c.patch file. Corrected patch attached.
Pavel
--- apr_uri.c.orig Sun Aug 19 19:17:42 2001
+++ apr_uri.c Fri Nov 23 18:36:19 2001
@@ -230,7 +230,7 @@
* can be called more than once per request.
*/
memset (uptr, '\0', sizeof(*uptr));
- uptr->is_initialized = 1;
+ uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
/* We assume the processor has a branch predictor like most --
* it assumes forward branches are untaken and backwards are taken. That's
@@ -353,7 +353,7 @@
* can be called more than once per request.
*/
memset (uptr, '\0', sizeof(*uptr));
- uptr->is_initialized = 1;
+ uptr->flags = APR_URI_FLAG_IS_INITIALIZED;
uptr->hostinfo = apr_pstrdup(p, hostinfo);
/* We expect hostinfo to point to the first character of
