diff options
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 |
commit | d061b1ddb3a8a744ec46351d0dca739c2aa10efc (patch) | |
tree | e3afdaa0aecd1665fe72b7eb318dedb78920a3fc | |
parent | eac2a1fcc5d4540eb05f3f5011226841c4ca854c (diff) | |
parent | 3ac2d79f09d58036562ce0b0cb37603b51c75844 (diff) |
Merge pull request #1149 from npwoods/hash_assert
Adding an assert()
-rw-r--r-- | src/lib/util/hash.cpp | 2 |
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(); |