]> WPIA git - cassiopeia.git/blobdiff - src/util.cpp
fix: Check the CA certificate file could be loaded
[cassiopeia.git] / src / util.cpp
index f3d95c0ad522f3933ab1e7e57bf94d445a28d715..20d46606762d1aec69db186a9c24843bf9c60c5a 100644 (file)
@@ -78,7 +78,7 @@ std::pair<bool, time_t> parseDate( const std::string& date ) {
     std::size_t siz = strftime( check, 11, "%Y-%m-%d", &t );
 
     if( siz != 10 ) {
-        return std::pair<bool, time_t>( false, 0 );
+        return std::pair<bool, time_t>( false, 0 ); // NO-COVERAGE (by contract of strftime)
     }
 
     std::string checkS( check, siz );