You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/11/05 01:36:05 UTC
svn commit: r832933 - /httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c
Author: trawick
Date: Thu Nov 5 00:36:05 2009
New Revision: 832933
URL: http://svn.apache.org/viewvc?rev=832933&view=rev
Log:
axe set-but-unnecessary variable noticed by LLVM scan-build
Modified:
httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c
Modified: httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c?rev=832933&r1=832932&r2=832933&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/mod_fcgid.c Thu Nov 5 00:36:05 2009
@@ -538,7 +538,6 @@
fcgid_init(apr_pool_t * config_pool, apr_pool_t * plog, apr_pool_t * ptemp,
server_rec * main_server)
{
- apr_proc_t *procnew;
const char *userdata_key = "fcgid_init";
apr_status_t rv;
void *dummy = NULL;
@@ -553,16 +552,10 @@
apr_pool_userdata_get(&dummy, userdata_key,
main_server->process->pool);
if (!dummy) {
- procnew =
- apr_pcalloc(main_server->process->pool, sizeof(*procnew));
- procnew->pid = -1;
- procnew->err = procnew->in = procnew->out = NULL;
- apr_pool_userdata_set((const void *) procnew, userdata_key,
+ apr_pool_userdata_set((const void *)1, userdata_key,
apr_pool_cleanup_null,
main_server->process->pool);
return OK;
- } else {
- procnew = dummy;
}
/* Initialize share memory and share lock */