changeset 1965:877713b3a91c

fix possibly uninitialized variable
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Apr 2016 10:27:15 +0200
parents 5a80fb3402e0
children 8c506670f3cd
files OrthancServer/main.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Fri Apr 08 09:09:01 2016 +0200
+++ b/OrthancServer/main.cpp	Mon Apr 11 10:27:15 2016 +0200
@@ -777,7 +777,7 @@
   LOG(WARNING) << "DICOM server listening with AET " << dicomServer.GetApplicationEntityTitle() 
                << " on port: " << dicomServer.GetPortNumber();
 
-  bool restart;
+  bool restart = false;
   ErrorCode error = ErrorCode_Success;
 
   try
@@ -924,7 +924,7 @@
   }
 #endif
 
-  bool restart;
+  bool restart = false;
   ErrorCode error = ErrorCode_Success;
 
   try