[Groonga-commit] groonga/groonga at e20c3d8 [master] Fix a crash bug with libedit

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 17 23:10:41 JST 2015


Kouhei Sutou	2015-11-17 23:10:41 +0900 (Tue, 17 Nov 2015)

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

  Message:
    Fix a crash bug with libedit

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+6 -5)
===================================================================
--- src/groonga.c    2015-11-17 21:32:23 +0900 (31919e4)
+++ src/groonga.c    2015-11-17 23:10:41 +0900 (537e189)
@@ -3134,11 +3134,6 @@ main(int argc, char **argv)
     cache_limit = value;
   }
 
-#ifdef GRN_WITH_LIBEDIT
-  if (need_line_editor) {
-    line_editor_init(argc, argv);
-  }
-#endif
   grn_gctx.errbuf[0] = '\0';
   if (grn_init()) {
     fprintf(stderr, "failed to initialize Groonga: %s\n", grn_gctx.errbuf);
@@ -3216,6 +3211,12 @@ main(int argc, char **argv)
     need_line_editor = GRN_TRUE;
   }
 
+#ifdef GRN_WITH_LIBEDIT
+  if (need_line_editor) {
+    line_editor_init(argc, argv);
+  }
+#endif
+
   newdb = (flags & FLAG_NEW_DB);
   is_daemon_mode = (flags & FLAG_MODE_DAEMON);
   if (flags & FLAG_MODE_CLIENT) {
-------------- next part --------------
HTML����������������������������...
다운로드 



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