[Groonga-commit] groonga/grngo at a6ef10b [master] Initialize db->estr to refer to ctx->errbuf.

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Tue Jul 21 15:31:32 JST 2015


susumu.yata	2015-07-21 15:31:32 +0900 (Tue, 21 Jul 2015)

  New Revision: a6ef10b957fe13cf4a89d73219ca32ea9864bf87
  https://github.com/groonga/grngo/commit/a6ef10b957fe13cf4a89d73219ca32ea9864bf87

  Message:
    Initialize db->estr to refer to ctx->errbuf.
    
    This is a workaround until error message generation is added.

  Modified files:
    grngo.c

  Modified: grngo.c (+2 -1)
===================================================================
--- grngo.c    2015-07-21 14:29:40 +0900 (4a411a9)
+++ grngo.c    2015-07-21 15:31:32 +0900 (62a042c)
@@ -120,7 +120,7 @@ _grngo_new_db(void) {
   memset(db, 0, sizeof(*db));
   db->ctx = NULL;
   db->obj = NULL;
-  db->estr = db->estr_buf;
+  db->estr = NULL;
   return db;
 }
 
@@ -141,6 +141,7 @@ _grngo_create_db(grngo_db *db, const char *path) {
   if (!db->ctx) {
     return GRN_NO_MEMORY_AVAILABLE;
   }
+  db->estr = db->ctx->errbuf;
   db->obj = grn_db_create(db->ctx, path, NULL);
   if (!db->obj) {
     if (db->ctx->rc != GRN_SUCCESS) {
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る