--default-extra-file handling code fix.
mysys/default.c: if we check for error, we should set it.
This commit is contained in:
parent
362a340de3
commit
7b36ac4819
@ -152,8 +152,8 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
|
|||||||
}
|
}
|
||||||
else if (defaults_extra_file)
|
else if (defaults_extra_file)
|
||||||
{
|
{
|
||||||
if (search_default_file_with_ext(func, func_ctx, "", "",
|
if ((error= search_default_file_with_ext(func, func_ctx, "", "",
|
||||||
defaults_extra_file, 0) < 0)
|
defaults_extra_file, 0)) < 0)
|
||||||
goto err; /* Fatal error */
|
goto err; /* Fatal error */
|
||||||
if (error > 0)
|
if (error > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user