From c4ba2d2ca822ddc130f63d597089b0c7852b764a Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Tue, 20 Oct 2015 17:51:46 +0200 Subject: [PATCH] initialize fields in constructors fixes CID 27958 found by Coverity Scan --- client/scheduler_op.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/scheduler_op.cpp b/client/scheduler_op.cpp index ea315f40d6..42f00fc1fc 100644 --- a/client/scheduler_op.cpp +++ b/client/scheduler_op.cpp @@ -47,10 +47,15 @@ using std::vector; SCHEDULER_OP::SCHEDULER_OP(HTTP_OP_SET* h) { - cur_proj = NULL; - state = SCHEDULER_OP_STATE_IDLE; + scheduler_op_retval = 0; http_op.http_op_state = HTTP_STATE_IDLE; http_ops = h; + strcpy(scheduler_url,""); + url_index = 0; + cur_proj = NULL; + state = SCHEDULER_OP_STATE_IDLE; + reason = 0; + url_random = 0.0; } // See if there's a pending master file fetch.