changeset 3972:7f8b30416d50

minor clarification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 May 2020 18:03:08 +0200
parents b04e1b3b8a7f
children d86bddb50972
files OrthancServer/OrthancGetRequestHandler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancGetRequestHandler.cpp	Fri May 22 16:43:21 2020 +0200
+++ b/OrthancServer/OrthancGetRequestHandler.cpp	Fri May 22 18:03:08 2020 +0200
@@ -254,7 +254,7 @@
     bool allowTranscoding = (context_.IsTranscodeDicomProtocol() &&
                              remote_.IsTranscodingAllowed());
     
-    T_ASC_PresentationContextID presId;
+    T_ASC_PresentationContextID presId = 0;  // Unnecessary initialization, makes code clearer
     DicomTransferSyntax selectedSyntax;
     if (!SelectPresentationContext(presId, selectedSyntax, assoc, sopClassUid,
                                    sourceSyntax, allowTranscoding) ||