From aea0f0f3070e7813cfabc1d13349987b9ebc5989 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 1 Sep 2025 19:51:45 +1200 Subject: [PATCH] Update source/src/services.cpp --- source/src/services.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/src/services.cpp b/source/src/services.cpp index f63f86e..1b66f57 100644 --- a/source/src/services.cpp +++ b/source/src/services.cpp @@ -143,7 +143,10 @@ namespace dropshell error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<second); + std::string template_hash_str = it->second; + uint64_t service_template_hash = 0; + if (!template_hash_str.empty()) + service_template_hash = std::stoull(template_hash_str); service.service_template_hash_match = (service_template_hash == tinfo.hash()); //debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl; }