diff options
author | Tom Gundersen <teg@jklm.no> | 2014-11-04 16:20:22 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-11-05 16:54:22 +0100 |
commit | 61c81750217af7492be86adde81b28e310cd5e82 (patch) | |
tree | 8398c46bbc830cabc77476b77637df0cc377b520 | |
parent | 696c24fced77b152dda45f0bdbcf6411849bd8ab (diff) |
test: hashmap-plain - make coverity happy
Check return value of hashmap_ensure_allocated().
CID#1250807.
-rw-r--r-- | src/test/test-hashmap-plain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c index 63f2f3e8ff..6f0910aae7 100644 --- a/src/test/test-hashmap-plain.c +++ b/src/test/test-hashmap-plain.c @@ -246,7 +246,7 @@ static void test_hashmap_put(void) { int valid_hashmap_put; void *val1 = (void*) "val 1"; - hashmap_ensure_allocated(&m, &string_hash_ops); + assert_se(hashmap_ensure_allocated(&m, &string_hash_ops) >= 0); assert_se(m); valid_hashmap_put = hashmap_put(m, "key 1", val1); |