From 7b36ac4819a02c25664a5f70f74262c3720eccab Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 May 2005 17:23:16 +0500 Subject: [PATCH] --default-extra-file handling code fix. mysys/default.c: if we check for error, we should set it. --- mysys/default.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysys/default.c b/mysys/default.c index 5afefa5463d..d35eb399b80 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -152,8 +152,8 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv, } else if (defaults_extra_file) { - if (search_default_file_with_ext(func, func_ctx, "", "", - defaults_extra_file, 0) < 0) + if ((error= search_default_file_with_ext(func, func_ctx, "", "", + defaults_extra_file, 0)) < 0) goto err; /* Fatal error */ if (error > 0) {