# HG changeset patch # User Sebastien Jodogne # Date 1615212805 -3600 # Node ID 19ea4ecd6d9a514c9d319da817bf312f6e84f398 # Parent a3e6aa2b07b0d3cb880354c5370b7ce6b281a9bb cppcheck diff -r a3e6aa2b07b0 -r 19ea4ecd6d9a OrthancServer/Sources/ServerIndex.cpp --- a/OrthancServer/Sources/ServerIndex.cpp Mon Mar 08 15:00:58 2021 +0100 +++ b/OrthancServer/Sources/ServerIndex.cpp Mon Mar 08 15:13:25 2021 +0100 @@ -3252,7 +3252,8 @@ GlobalProperty sequence_; public: - Operations(GlobalProperty sequence) : + explicit Operations(GlobalProperty sequence) : + newValue_(0), // Dummy initialization sequence_(sequence) { } @@ -3296,6 +3297,7 @@ Operations operations(sequence); Apply(operations); + assert(operations.GetNewValue() != 0); return operations.GetNewValue(); }