diff options
| author | default <nobody@localhost> | 2026-03-24 17:29:07 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2026-03-24 17:29:07 +0100 |
| commit | dbcb2445ea1b1dc562fc49a2aeb57048b0a64baf (patch) | |
| tree | 35ccf9258d503b4810805c89f5fa59b3fee22a3b /html.c | |
| parent | 9a1b78113e7fd728acd5cb6b58c24fb53f24f99a (diff) | |
Avoid passing a NULL uid to sprintf(), as it annoys OpenBSD.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |