]> granicus.if.org Git - apache/commitdiff
fix data initialization problem in new Unix -k option processing
authorJeff Trawick <trawick@apache.org>
Thu, 23 May 2002 18:31:02 +0000 (18:31 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 23 May 2002 18:31:02 +0000 (18:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95251 13f79535-47bb-0310-9956-ffa450edef68

server/mpm_common.c

index c6d4e9524c2803a186e62623f983d5a5550bc22f..36c02af4b9a21e0f30450ee4059b8006ab2dc085 100644 (file)
@@ -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]) {