summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_http_static.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c
index 46ae57a7..ee18be1b 100644
--- a/src/nxt_http_static.c
+++ b/src/nxt_http_static.c
@@ -76,7 +76,7 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r,
nxt_str_set(&extension, ".html");
} else {
- nxt_str_null(&index);
+ nxt_str_set(&index, "");
nxt_str_null(&extension);
}