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