diff --git a/src/protocols.cpp b/src/protocols.cpp index 622b582..4dcf577 100644 --- a/src/protocols.cpp +++ b/src/protocols.cpp @@ -13,7 +13,7 @@ class ProtocolInfosImpl: public ProtocolInfos { public: const ProtocolInfo* GetInfo(const char* protocol) override { std::string_view to_find{ protocol }; - for(auto p = s_infoList; p; ++p) { + for(auto p = s_infoList; p->protocol; ++p) { if (to_find == p->protocol) return p; }