Skip to content

Commit

Permalink
missed change in 3d9dd9b (fixes #1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Dec 17, 2023
1 parent 3aadafa commit 53fcc90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ebusd/main_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,8 @@ int parse_main_args(int argc, char* argv[], char* envp[], options_t *opt) {
cnt = 1;
strcat(envopt, pos);
}
int idx = -1;
int err = argParse(&parseOpt, 1+cnt, envargv, &idx);
if (err != 0 && idx == -1) { // ignore args for non-arg boolean options
int err = argParse(&parseOpt, 1+cnt, envargv, reinterpret_cast<void*>(opt));
if (err != 0) {
if (err == ESRCH) { // special value to abort immediately
logWrite(lf_main, ll_error, "invalid argument in env: %s", *env); // force logging on exit
return EINVAL;
Expand Down

0 comments on commit 53fcc90

Please sign in to comment.