summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/unix/getopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/unix/getopt.c b/misc/unix/getopt.c
index c8863e9c5..78061326e 100644
--- a/misc/unix/getopt.c
+++ b/misc/unix/getopt.c
@@ -39,6 +39,7 @@ APR_EXPORT(apr_status_t) apr_initopt(apr_getopt_t **os, apr_pool_t *cont,
int argc, char const* const* argv)
{
*os = apr_palloc(cont, sizeof(apr_getopt_t));
+ (*os)->cont = cont;
(*os)->err = 1;
(*os)->ind = 1;
(*os)->place = EMSG;