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; }