Commit 442b2d89 authored by unknown's avatar unknown

Fixed a typo that caused segmentation fault when using

--defaults-extra-file option.

parent 71924aaa
......@@ -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