Commit 794fccca authored by Simon Kelley's avatar Simon Kelley

Fix crash in last commit.

parent 394ff492
......@@ -1404,9 +1404,10 @@ int cache_make_stat(struct txt_record *t)
static char *sanitise(char *name)
{
unsigned char *r;
for (r = (unsigned char *)name; *r; r++)
if (!isprint((int)*r))
return "<name unprintable>";
if (name)
for (r = (unsigned char *)name; *r; r++)
if (!isprint((int)*r))
return "<name unprintable>";
return name;
}
......
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