summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorjani@a193-229-222-105.elisa-laajakaista.fi <>2004-11-05 23:58:30 +0200
committerjani@a193-229-222-105.elisa-laajakaista.fi <>2004-11-05 23:58:30 +0200
commitbfdf57ef31174814cdec5e275d710b4a48dc55c7 (patch)
tree19758920ca7f3b8d4b49a95aeddd8b3cacdbd9e0 /mysys
parent862978dde54bce2dc4fa3e935aa530038dac8d13 (diff)
downloadmariadb-git-bfdf57ef31174814cdec5e275d710b4a48dc55c7.tar.gz
Fixed a typo that caused segmentation fault when using
--defaults-extra-file option.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/default.c b/mysys/default.c
index ed7f4b47097..416de09b661 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -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 */