]> granicus.if.org Git - apache/commitdiff
Silence compiler warning:
authorRainer Jung <rjung@apache.org>
Tue, 19 Jan 2016 11:30:42 +0000 (11:30 +0000)
committerRainer Jung <rjung@apache.org>
Tue, 19 Jan 2016 11:30:42 +0000 (11:30 +0000)
'free_slots$' may be used uninitialized in this function

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

server/mpm/motorz/motorz.c

index f7a7f1c2b7f2529291c02e8b222d7dc18a87d672..ac8cba7bd464cfbdfe704b7ae4510134c32d93ed 100644 (file)
@@ -1159,6 +1159,7 @@ static void perform_idle_server_maintenance(motorz_core_t *mz, apr_pool_t *p)
 
     int active = 0;
     free_length = 0;
+    free_slots[0] = 0;
 
     for (i = 0; i < ap_daemons_limit; ++i) {
         int status;