Skip to content
Browse files

"'entry' might be used uninitialized in this function." (klocwork.com

Issue #5). Thanks to Stefan de Konink for the patch!

git-svn-id: svn://cherokee-project.com/cherokee/trunk@6649 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 47b1d93 commit 76d368bb1620cf7f4d0837716755e3bf214b9316 @alobbs alobbs committed May 21, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 cherokee/balancer_failover.c
View
6 cherokee/balancer_failover.c
@@ -124,7 +124,7 @@ report_fail (cherokee_balancer_failover_t *balancer,
ret_t ret;
cherokee_list_t *i;
cherokee_balancer_entry_t *entry;
- cherokee_buffer_t tmp = CHEROKEE_BUF_INIT;
+ cherokee_buffer_t tmp = CHEROKEE_BUF_INIT;
UNUSED(conn);
@@ -173,8 +173,8 @@ dispatch (cherokee_balancer_failover_t *balancer,
cherokee_source_t **src)
{
cherokee_list_t *i;
- cherokee_balancer_entry_t *entry;
- cherokee_balancer_t *gbal = BAL(balancer);
+ cherokee_balancer_entry_t *entry = NULL;
+ cherokee_balancer_t *gbal = BAL(balancer);
UNUSED(conn);
CHEROKEE_MUTEX_LOCK (&balancer->mutex);

0 comments on commit 76d368b

Please sign in to comment.
Something went wrong with that request. Please try again.