summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2006-01-24 15:37:56 +0100
committerunknown <guilhem@mysql.com>2006-01-24 15:37:56 +0100
commitb455ba3f59a5514665a200a50f86a89203fdee3b (patch)
treea50d46e810b82e217a42f0c3918b48e00122706c /sql/parse_file.cc
parent83401c52093dcad30ee86eff05bfc105aad2105a (diff)
downloadmariadb-git-b455ba3f59a5514665a200a50f86a89203fdee3b.tar.gz
Fix for crash of "mysql-test-run --debug mysqldump": don't access dir->str if dir is null.
sql/parse_file.cc: since recently, the "dir" parameter can be 0.
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r--sql/parse_file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/parse_file.cc b/sql/parse_file.cc
index 3cddc879825..2a602e9ba28 100644
--- a/sql/parse_file.cc
+++ b/sql/parse_file.cc
@@ -224,7 +224,8 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name,
File_option *param;
DBUG_ENTER("sql_create_definition_file");
DBUG_PRINT("enter", ("Dir: %s, file: %s, base 0x%lx",
- dir->str, file_name->str, (ulong) base));
+ dir ? dir->str : "(null)",
+ file_name->str, (ulong) base));
if (dir)
{