Protect DBUG_ENTER printout from NULL pointers

This commit is contained in:
msvensson@pilot.mysql.com 2007-02-14 14:05:41 +01:00
parent fcb305035b
commit e03946d1e4

View file

@ -33,7 +33,9 @@ File my_create_with_symlink(const char *linkname, const char *filename,
int create_link;
char abs_linkname[FN_REFLEN];
DBUG_ENTER("my_create_with_symlink");
DBUG_PRINT("enter", ("linkname: %s filename: %s", linkname, filename));
DBUG_PRINT("enter", ("linkname: %s filename: %s",
linkname ? linkname : "(null)",
filename ? filename : "(null)"));
if (my_disable_symlinks)
{