null+****@clear*****
null+****@clear*****
2012年 3月 15日 (木) 09:29:49 JST
Susumu Yata 2012-03-15 09:29:49 +0900 (Thu, 15 Mar 2012)
New Revision: 9d277e98fccc793c6e1df79201b96ae98e7f2712
Log:
Fix a bug that groonga terminates if the default config file exists.
Modified files:
src/groonga.c
Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c 2012-03-14 18:20:38 +0900 (bb141a3)
+++ src/groonga.c 2012-03-15 09:29:49 +0900 (d8156b2)
@@ -2546,7 +2546,7 @@ main(int argc, char **argv)
} else if (*default_config_path) {
const config_file_status status =
config_file_load(default_config_path, opts, &mode);
- if (status != CONFIG_FILE_IO_ERROR) {
+ if (status != CONFIG_FILE_SUCCESS && status != CONFIG_FILE_IO_ERROR) {
fprintf(stderr, "%s: failed to parse config file: %s (%s)\n",
argv[0], default_config_path,
(status == CONFIG_FILE_MEMORY_ERROR) ? strerror(errno) : "Invalid format");