summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2000-08-09 17:46:22 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2000-08-09 17:46:22 +0000
commita59429a7246ad5015c7f2b06a9e9bcc85607df65 (patch)
treeceddf55d6e424204fadcb8ccbe0babf6e8eeb828 /misc
parentf22f8847c7db11ed06fd9fdb4284102f15f7cf80 (diff)
downloadlibapr-a59429a7246ad5015c7f2b06a9e9bcc85607df65.tar.gz
Commit two fixes while I'm considering Jeff's comments.
apr_getopt_t->cont is not really necessary, but I don't yet see a reason to kill it outright. Might come in handy later. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60494 13f79535-47bb-0310-9956-ffa450edef68
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;