changeset 368:82f73188b58d attach-custom-data

fix warnings
author Alain Mazy <am@osimis.io>
date Wed, 01 Feb 2023 16:24:37 +0100
parents cd9521e04249
children f18e46d7dbf8
files Odbc/Plugins/OdbcIndex.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Odbc/Plugins/OdbcIndex.cpp	Thu Sep 15 18:12:34 2022 +0200
+++ b/Odbc/Plugins/OdbcIndex.cpp	Wed Feb 01 16:24:37 2023 +0100
@@ -387,7 +387,7 @@
 
     OrthancPluginResourceType type;
     bool hasParent;
-    int64_t parentId;
+    int64_t parentId = 0;
 
     {
       DatabaseManager::CachedStatement lookupResource(
@@ -482,7 +482,7 @@
 
     bool hasRemainingAncestor = false;
     std::string remainingAncestor;
-    OrthancPluginResourceType ancestorType;
+    OrthancPluginResourceType ancestorType = OrthancPluginResourceType_None;
     
     if (hasParent)
     {