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-Tag: 2.0.37~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f135cea7700f61560097b05b7c827f3a7b67c27;p=thirdparty%2Fapache%2Fhttpd.git 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 c6d4e9524c2..36c02af4b9a 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]) {