summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/html-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html-error.c b/src/html-error.c
index 3018b46..f04943e 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -107,7 +107,7 @@ send_html_file (FILE *infile, struct conn_s *connptr)
varval = (const char *)
lookup_variable (connptr->error_variables,
varstart);
- if (!varval)
+ if (!varval || !varval[0])
varval = "(unknown)";
r = write_message (connptr->client_fd,
"%s", varval);