Commit cc365d84 authored by Matthias Braun's avatar Matthias Braun
Browse files

be: assert that be_parse_arg() is only called before be is initialized

Without the assert it is easy to run into suble bugs because
be_get_backend_param() was called before all arguments are set by
be_parse_arg().
parent 439ec7c4
......@@ -227,6 +227,10 @@ int be_parse_arg(const char *arg)
lc_opt_print_help_for_entry(be_grp, '-', stdout);
return -1;
}
/* backend args may not have an effect anymore after the backend
* has been initialized */
assert(!isa_initialized);
return lc_opt_from_single_arg(be_grp, arg);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment