Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 1965:877713b3a91c
fix possibly uninitialized variable
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Apr 2016 10:27:15 +0200 |
parents | 22ddb22fce83 |
children | ebce5f456b8e |
comparison
equal
deleted
inserted
replaced
1964:5a80fb3402e0 | 1965:877713b3a91c |
---|---|
775 | 775 |
776 dicomServer.Start(); | 776 dicomServer.Start(); |
777 LOG(WARNING) << "DICOM server listening with AET " << dicomServer.GetApplicationEntityTitle() | 777 LOG(WARNING) << "DICOM server listening with AET " << dicomServer.GetApplicationEntityTitle() |
778 << " on port: " << dicomServer.GetPortNumber(); | 778 << " on port: " << dicomServer.GetPortNumber(); |
779 | 779 |
780 bool restart; | 780 bool restart = false; |
781 ErrorCode error = ErrorCode_Success; | 781 ErrorCode error = ErrorCode_Success; |
782 | 782 |
783 try | 783 try |
784 { | 784 { |
785 restart = StartHttpServer(context, restApi, plugins); | 785 restart = StartHttpServer(context, restApi, plugins); |
922 plugins->SetServerContext(context); | 922 plugins->SetServerContext(context); |
923 context.SetPlugins(*plugins); | 923 context.SetPlugins(*plugins); |
924 } | 924 } |
925 #endif | 925 #endif |
926 | 926 |
927 bool restart; | 927 bool restart = false; |
928 ErrorCode error = ErrorCode_Success; | 928 ErrorCode error = ErrorCode_Success; |
929 | 929 |
930 try | 930 try |
931 { | 931 { |
932 restart = ConfigureHttpHandler(context, plugins); | 932 restart = ConfigureHttpHandler(context, plugins); |