[Groonga-commit] groonga/groonga [master] Use meaningful name

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 5 18:31:09 JST 2013


Kouhei Sutou	2013-03-05 18:31:09 +0900 (Tue, 05 Mar 2013)

  New Revision: 0faae2be572464107995c650636c4115f3c8f0de
  https://github.com/groonga/groonga/commit/0faae2be572464107995c650636c4115f3c8f0de

  Log:
    Use meaningful name
    
    buffer ->
    specs_path

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -3)
===================================================================
--- lib/db.c    2013-03-05 18:29:48 +0900 (bcd2de6)
+++ lib/db.c    2013-03-05 18:31:09 +0900 (390f662)
@@ -240,9 +240,9 @@ grn_db_open(grn_ctx *ctx, const char *path)
         break;
       }
       if (s->keys) {
-        char buffer[PATH_MAX];
-        gen_pathname(path, buffer, 0);
-        if ((s->specs = grn_ja_open(ctx, buffer))) {
+        char specs_path[PATH_MAX];
+        gen_pathname(path, specs_path, 0);
+        if ((s->specs = grn_ja_open(ctx, specs_path))) {
           CRITICAL_SECTION_INIT(s->lock);
           GRN_DB_OBJ_SET_TYPE(s, GRN_DB);
           s->obj.db = (grn_obj *)s;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index