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:26:19 UTC

svn commit: r832925 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c

Author: trawick
Date: Thu Nov  5 00:26:19 2009
New Revision: 832925

URL: http://svn.apache.org/viewvc?rev=832925&view=rev
Log:
axe set-but-unnecessary variable noticed by LLVM scan-build

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c?rev=832925&r1=832924&r2=832925&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_spawn_ctl.c Thu Nov  5 00:26:19 2009
@@ -215,14 +215,13 @@
 
 int is_kill_allowed(server_rec * main_server, fcgid_procnode * procnode)
 {
-    struct fcgid_stat_node *previous_node, *current_node;
+    struct fcgid_stat_node *current_node;
 
     if (!g_stat_pool || !procnode)
         return 0;
 
     /* Can I find the node base on inode, device id and share group id? */
-    previous_node = g_stat_list_header;
-    for (current_node = previous_node;
+    for (current_node = g_stat_list_header;
          current_node != NULL; current_node = current_node->next) {
         if (current_node->inode == procnode->inode
             && current_node->deviceid == procnode->deviceid
@@ -231,7 +230,6 @@
             && current_node->uid == procnode->uid
             && current_node->gid == procnode->gid)
             break;
-        previous_node = current_node;
     }
 
     if (current_node) {