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

Fix crash in last commit.

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