summaryrefslogtreecommitdiff
path: root/mysys/default.c
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-04-06 17:22:21 +0300
committermonty@mysql.com <>2005-04-06 17:22:21 +0300
commit49e721677f9eec2ae8e869dacc8acb522f72ef05 (patch)
treee94c78c8db8d7f6ca96a83d37f1af529688c9a72 /mysys/default.c
parent48de1ff27744c996d7f3b63e4b75eeaeb96c9f0c (diff)
downloadmariadb-git-49e721677f9eec2ae8e869dacc8acb522f72ef05.tar.gz
Fixed errors descovered by valgrind 2.4
Added suppression file for some valgrind warnings that are not real errors
Diffstat (limited to 'mysys/default.c')
-rw-r--r--mysys/default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/default.c b/mysys/default.c
index ddff4e26be5..6352cc18d56 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -477,13 +477,13 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
if ((stat_info.st_mode & S_IWOTH) &&
(stat_info.st_mode & S_IFMT) == S_IFREG)
{
- fprintf(stderr, "warning: World-writable config file %s is ignored\n",
+ fprintf(stderr, "Warning: World-writable config file '%s' is ignored\n",
name);
return 0;
}
}
#endif
- if (!(fp= my_fopen(fn_format(name, name, "", "", 4), O_RDONLY, MYF(0))))
+ if (!(fp= my_fopen(name, O_RDONLY, MYF(0))))
return 0; /* Ignore wrong files */
while (fgets(buff, sizeof(buff) - 1, fp))