summaryrefslogtreecommitdiff
path: root/trust/tests
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-20 20:59:26 +0100
committerStef Walter <stefw@gnome.org>2013-03-20 22:22:22 +0100
commit57d8f36a6cfbde5a9a783f11f2b75f19005c23e1 (patch)
treed21f862a9698ef6066ce2b14ef82fbd8c370f9ac /trust/tests
parent9cf89e4b43e5e018bb3103be1873a3993769ce4a (diff)
Fix invalid memory accesses reported by 'make memcheck'
These are things that showed up in valgrind while running the tests.
Diffstat (limited to 'trust/tests')
-rw-r--r--trust/tests/test-index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/trust/tests/test-index.c b/trust/tests/test-index.c
index 3cda272..d58a510 100644
--- a/trust/tests/test-index.c
+++ b/trust/tests/test-index.c
@@ -539,6 +539,8 @@ test_find_all (CuTest *tc)
free (check);
/* A double check of this method */
+ one = 0UL;
+ check = &one;
CuAssertTrue (tc, !handles_are (check, 29292929, 0UL));
CuAssertTrue (tc, !handles_are (NULL, 0UL));