From 9e5d951946961c297649c20ffd0709a7bf4501d9 Mon Sep 17 00:00:00 2001 From: "guilhem@mysql.com" <> Date: Tue, 24 Jan 2006 15:37:56 +0100 Subject: [PATCH] Fix for crash of "mysql-test-run --debug mysqldump": don't access dir->str if dir is null. --- sql/parse_file.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.9