aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2026-03-24 17:29:07 +0100
committerdefault <nobody@localhost>2026-03-24 17:29:07 +0100
commitdbcb2445ea1b1dc562fc49a2aeb57048b0a64baf (patch)
tree35ccf9258d503b4810805c89f5fa59b3fee22a3b /html.c
parent9a1b78113e7fd728acd5cb6b58c24fb53f24f99a (diff)
Avoid passing a NULL uid to sprintf(), as it annoys OpenBSD.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index b7461c1..f07be9c 100644
--- a/html.c
+++ b/html.c
@@ -4586,7 +4586,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
if (!uid || !user_open(&snac, uid)) {
/* invalid user */
status = grave(uid, 0) ? HTTP_STATUS_GONE : HTTP_STATUS_NOT_FOUND;
- srv_debug(1, xs_fmt("html_get_handler bad user %s %d", uid, status));
+ srv_debug(1, xs_fmt("html_get_handler bad user %s %d", xs_or(uid, "(null)"), status));
return status;
}