From 3ac2d79f09d58036562ce0b0cb37603b51c75844 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Wed, 27 Jul 2016 07:59:43 -0400 Subject: [PATCH] Adding an assert() --- src/lib/util/hash.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/util/hash.cpp b/src/lib/util/hash.cpp index 6d7ac9319e3..9ba632240dc 100644 --- a/src/lib/util/hash.cpp +++ b/src/lib/util/hash.cpp @@ -279,6 +279,8 @@ std::string hash_collection::attribute_string() const bool hash_collection::from_internal_string(const char *string) { + assert(string != nullptr); + // start fresh reset();