# HG changeset patch # User Sebastien Jodogne # Date 1737474755 -3600 # Node ID 5a6aa72628cb03315a3e10525d461ac8bae46525 # Parent f3dbc9a58195726140304544cbe32335917f4555 fix memory initialization diff -r f3dbc9a58195 -r 5a6aa72628cb OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp --- a/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp Tue Jan 21 16:44:30 2025 +0100 +++ b/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp Tue Jan 21 16:52:35 2025 +0100 @@ -155,6 +155,18 @@ } + DicomRetrieveScuBaseJob::DicomRetrieveScuBaseJob(ServerContext &context) : + context_(context), + query_(false /* this is not for worklists */), + queryFormat_(DicomToJsonFormat_Short), + nbRemainingSubOperations_(0), + nbCompletedSubOperations_(0), + nbFailedSubOperations_(0), + nbWarningSubOperations_(0) + { + } + + DicomRetrieveScuBaseJob::DicomRetrieveScuBaseJob(ServerContext& context, const Json::Value& serialized) : SetOfCommandsJob(new Unserializer(*this), serialized), diff -r f3dbc9a58195 -r 5a6aa72628cb OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h --- a/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h Tue Jan 21 16:44:30 2025 +0100 +++ b/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h Tue Jan 21 16:52:35 2025 +0100 @@ -96,12 +96,7 @@ virtual void Retrieve(const DicomMap &findAnswer) = 0; - explicit DicomRetrieveScuBaseJob(ServerContext &context) : - context_(context), - query_(false /* this is not for worklists */), - queryFormat_(DicomToJsonFormat_Short) - { - } + explicit DicomRetrieveScuBaseJob(ServerContext &context); DicomRetrieveScuBaseJob(ServerContext &context, const Json::Value &serialized);