Skip to content

Commit

Permalink
fixed config file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
valenok committed Sep 8, 2010
1 parent 53dde04 commit 6a05aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static void process_command_line_arguments(char *argv[], char **options) {
/* Should we use a config file ? */
if (argv[1] != NULL && argv[2] == NULL) {
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
config_file = CONFIG_FILE;
} else if (argv[1] == NULL) {
Expand Down

0 comments on commit 6a05aba

Please sign in to comment.