[Groonga-commit] groonga/groonga [master] set cache to NULL in grn_pat_cache_disable()

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 8日 (水) 09:42:20 JST


Daijiro MORI	2012-02-08 09:42:20 +0900 (Wed, 08 Feb 2012)

  New Revision: 21b26afd30f7d268487a173635bbbc0c698f661a

  Log:
    set cache to NULL in grn_pat_cache_disable()

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+1 -0)
===================================================================
--- lib/pat.c    2012-02-08 07:46:58 +0900 (75b77f0)
+++ lib/pat.c    2012-02-08 09:42:20 +0900 (914e588)
@@ -486,6 +486,7 @@ grn_pat_cache_disable(grn_ctx *ctx, grn_pat *pat)
   if (pat->cache) {
     GRN_FREE(pat->cache);
     pat->cache_size = 0;
+    pat->cache = NULL;
   }
   return ctx->rc;
 }




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