Fix potential to use uninitialized value when branching.

This commit is contained in:
Gregory Burd 2013-07-26 20:08:49 -04:00
parent 9a5defd8c9
commit cce163db9f

View file

@ -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