From cce163db9f5c698c01bc3443651820623e53dbb5 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Fri, 26 Jul 2013 20:08:49 -0400 Subject: [PATCH] Fix potential to use uninitialized value when branching. --- c_src/async_nif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/async_nif.h b/c_src/async_nif.h index 5d283da..89c758a 100644 --- a/c_src/async_nif.h +++ b/c_src/async_nif.h @@ -290,7 +290,7 @@ async_nif_enqueue_req(struct async_nif_state* async_nif, struct async_nif_req_en /* Identify the most appropriate worker for this request. */ unsigned int i, last_qid, qid = 0; struct async_nif_work_queue *q = NULL; - double avg_depth; + double avg_depth = 0.0; /* Either we're choosing a queue based on some affinity/hinted value or we need to select the next queue in the rotation and atomically update that