diff --git a/src/str.cpp b/src/str.cpp index 5889d92d..7050f79b 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -300,6 +300,9 @@ bool str::eq(const char *s0_, const char *s1_) noexcept { + if((s0_ == nullptr) || (s1_ == nullptr)) + return (s0_ == s1_); + return (std::strcmp(s0_, s1_) == 0); }