Commit f0de8674 authored by unknown's avatar unknown

Protect DBUG_ENTER printout from NULL pointers

parent 100e453e
...@@ -33,7 +33,9 @@ File my_create_with_symlink(const char *linkname, const char *filename, ...@@ -33,7 +33,9 @@ File my_create_with_symlink(const char *linkname, const char *filename,
int create_link; int create_link;
char abs_linkname[FN_REFLEN]; char abs_linkname[FN_REFLEN];
DBUG_ENTER("my_create_with_symlink"); 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) if (my_disable_symlinks)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment