diff --git a/test/hash_index.c b/test/hash_index.c index 22eaa4e26..6e99724bd 100644 --- a/test/hash_index.c +++ b/test/hash_index.c @@ -298,9 +298,7 @@ static void test_invalid_size(Fixture *fixture, gconstpointer user_data) // open and calculate hash index index = r_hash_index_open("test", datafd, NULL, &error); g_assert_error(error, R_HASH_INDEX_ERROR, R_HASH_INDEX_ERROR_SIZE); - g_assert_nonnull(index); - datafd = -1; /* belongs to index now */ - (void)datafd; /* ignore dead store */ + g_assert_null(index); } int main(int argc, char *argv[])