]> granicus.if.org Git - apache/commitdiff
* modules/generators/mod_cgid.c
authorPaul Querna <pquerna@apache.org>
Wed, 29 Oct 2008 08:27:01 +0000 (08:27 +0000)
committerPaul Querna <pquerna@apache.org>
Wed, 29 Oct 2008 08:27:01 +0000 (08:27 +0000)
  (cgid_server): Fix warning: 'env' and 'argv0' may be used uninitialized in
    this function.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708823 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgid.c

index 356aa7d584593bb73d39d07ceaa9c1cd326c974b..29f38b9ae7166f6e97b588155f658b737cfe1d0d 100644 (file)
@@ -634,8 +634,8 @@ static int cgid_server(void *data)
 
     while (!daemon_should_exit) {
         int errfileno = STDERR_FILENO;
-        char *argv0;
-        char **env;
+        char *argv0 = NULL;
+        char **env = NULL;
         const char * const *argv;
         apr_int32_t in_pipe;
         apr_int32_t out_pipe;