summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2016-07-27 22:02:31 +1000
committer GitHub <noreply@github.com>2016-07-27 22:02:31 +1000
commitd061b1ddb3a8a744ec46351d0dca739c2aa10efc (patch)
treee3afdaa0aecd1665fe72b7eb318dedb78920a3fc
parenteac2a1fcc5d4540eb05f3f5011226841c4ca854c (diff)
parent3ac2d79f09d58036562ce0b0cb37603b51c75844 (diff)
Merge pull request #1149 from npwoods/hash_assert
Adding an assert()
-rw-r--r--src/lib/util/hash.cpp2
1 files changed, 2 insertions, 0 deletions
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();