Commit 40b166ca authored by unknown's avatar unknown

Fixed a typo that caused segmentation fault when using

--defaults-extra-file option.
parent ba3adf01
......@@ -199,7 +199,7 @@ int load_defaults(const char *conf_file, const char **groups,
}
else if (defaults_extra_file)
{
for (ext= (char**) f_extensions; ext; ext++)
for (ext= (char**) f_extensions; *ext; *ext++)
if (search_default_file(&args, &alloc, NullS, defaults_extra_file,
*ext, &group) < 0)
goto err; /* Fatal error */
......
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