Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
6a05abad
Commit
6a05abad
authored
Sep 08, 2010
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed config file loading
parent
53dde04b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.c
main.c
+1
-1
No files found.
main.c
View file @
6a05abad
...
@@ -187,7 +187,7 @@ static void process_command_line_arguments(char *argv[], char **options) {
...
@@ -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
=
str
r
chr
(
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment