[Groonga-commit] groonga/groonga [master] removed access to invalid objects.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 25日 (金) 10:17:07 JST


Susumu Yata	2011-11-25 01:17:07 +0000 (Fri, 25 Nov 2011)

  New Revision: 26f7949fc871d2533451204dfa54ca3b9ec382c8

  Log:
    removed access to invalid objects.

  Modified files:
    test/unit/core/test-inverted-index.c

  Modified: test/unit/core/test-inverted-index.c (+0 -2)
===================================================================
--- test/unit/core/test-inverted-index.c    2011-11-25 00:59:41 +0000 (957cc03)
+++ test/unit/core/test-inverted-index.c    2011-11-25 01:17:07 +0000 (60eb6fb)
@@ -229,7 +229,6 @@ test_create_with_long_path(void)
   path = g_string_free(long_path, FALSE);
 
   inverted_index = grn_ii_create(context, path, lexicon, 0);
-  ((grn_db_obj *)inverted_index)->header.domain = GRN_DB_VOID;
   cut_assert_null(inverted_index);
 }
 
@@ -237,7 +236,6 @@ void
 test_create_with_null_lexicon(void)
 {
   inverted_index = grn_ii_create(context, path, NULL, 0);
-  ((grn_db_obj *)inverted_index)->header.domain = GRN_DB_VOID;
   cut_assert_null(inverted_index);
 }
 




Groonga-commit メーリングリストの案内
Back to archive index