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

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Tue Mar 5 17:11:32 JST 2013


Kouhei Sutou	2013-03-05 17:11:32 +0900 (Tue, 05 Mar 2013)

  New Revision: ba4850c1e34494b73df0215a63eaf4ab902a9903
  https://github.com/groonga/groonga/commit/ba4850c1e34494b73df0215a63eaf4ab902a9903

  Log:
    Use meaningful name
    
    buffer ->
    specs_path

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -3)
===================================================================
--- lib/db.c    2013-03-05 12:05:48 +0900 (9c67af1)
+++ lib/db.c    2013-03-05 17:11:32 +0900 (dc682c1)
@@ -180,9 +180,9 @@ grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_optarg *optarg)
         DB_OBJ(&s->obj)->range = GRN_ID_NIL;
         // prepare builtin classes and load builtin plugins.
         if (path) {
-          char buffer[PATH_MAX];
-          gen_pathname(path, buffer, 0);
-          if ((s->specs = grn_ja_create(ctx, buffer, 65536, 0))) {
+          char specs_path[PATH_MAX];
+          gen_pathname(path, specs_path, 0);
+          if ((s->specs = grn_ja_create(ctx, specs_path, 65536, 0))) {
             grn_ctx_use(ctx, (grn_obj *)s);
             grn_db_init_builtin_types(ctx);
             GRN_API_RETURN((grn_obj *)s);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index