diff OrthancServer/LuaScripting.cpp @ 2727:815e30657dad jobs

fix warning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Jul 2018 21:50:15 +0200
parents 3fc310ceb6d4
children 3a55b77339ff
line wrap: on
line diff
--- a/OrthancServer/LuaScripting.cpp	Thu Jul 12 18:01:16 2018 +0200
+++ b/OrthancServer/LuaScripting.cpp	Thu Jul 12 21:50:15 2018 +0200
@@ -537,7 +537,7 @@
     LuaJobManager::Lock lock(jobManager_, context_.GetJobsEngine());
 
     bool isFirst = true;
-    size_t previous;
+    size_t previous = 0;  // Dummy initialization to avoid warning
 
     for (Json::Value::ArrayIndex i = 0; i < operations.size(); ++i)
     {