mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix for crash of "mysql-test-run --debug mysqldump": don't access dir->str if dir is null.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user