From: Jeff Trawick Date: Thu, 23 May 2002 18:31:02 +0000 (+0000) Subject: fix data initialization problem in new Unix -k option processing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05382faa3a0be15ef9967502a7d69e8fb41b07e0;p=apache fix data initialization problem in new Unix -k option processing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95251 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm_common.c b/server/mpm_common.c index c6d4e9524c..36c02af4b9 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -838,6 +838,8 @@ void ap_mpm_rewrite_args(process_rec *process) apr_getopt_init(&opt, process->pool, process->argc, process->argv); opt->errfn = NULL; optbuf[0] = '-'; + /* option char returned by apr_getopt() will be stored in optbuf[1] */ + optbuf[2] = '\0'; while ((rv = apr_getopt(opt, "k:" AP_SERVER_BASEARGS, optbuf + 1, &optarg)) == APR_SUCCESS) { switch(optbuf[1]) {