mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
fixed config file loading
This commit is contained in:
1 parent
53dde04b8f
commit
6a05abad4d
1 file changed
+1
-1
@@ -187,7 +187,7 @@ static void process_command_line_arguments(char *argv[], char **options) {
|
|||||||
/* Should we use a config file ? */
|
/* Should we use a config file ? */
|
||||||
if (argv[1] != NULL && argv[2] == NULL) {
|
if (argv[1] != NULL && argv[2] == NULL) {
|
||||||
config_file = argv[1];
|
config_file = argv[1];
|
||||||
} else if (argv[1] == NULL && (p = strchr(argv[0], DIRSEP)) == NULL) {
|
} else if (argv[1] == NULL && (p = strrchr(argv[0], DIRSEP)) == NULL) {
|
||||||
// No command line flags specified. Look where binary lives
|
// No command line flags specified. Look where binary lives
|
||||||
config_file = CONFIG_FILE;
|
config_file = CONFIG_FILE;
|
||||||
} else if (argv[1] == NULL) {
|
} else if (argv[1] == NULL) {
|
||||||
|
|||||||
Reference in new issue
Block a user