diff Framework/PostgreSQL/PostgreSQLParameters.cpp @ 252:33fa478c119a

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 13:33:48 +0200
parents 3236894320d6
children 16aac0287485
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLParameters.cpp	Wed Apr 14 11:20:51 2021 +0200
+++ b/Framework/PostgreSQL/PostgreSQLParameters.cpp	Wed Apr 14 13:33:48 2021 +0200
@@ -150,7 +150,7 @@
 
   void PostgreSQLParameters::SetPortNumber(unsigned int port)
   {
-    if (port <= 0 ||
+    if (port == 0 ||
         port >= 65535)
     {
       throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);