diff options
-rw-r--r-- | src/nxt_http_variables.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nxt_http_variables.c b/src/nxt_http_variables.c index ec744317..a4205eec 100644 --- a/src/nxt_http_variables.c +++ b/src/nxt_http_variables.c @@ -455,7 +455,6 @@ nxt_http_var_body_bytes_sent(nxt_task_t *task, nxt_str_t *str, void *ctx, static nxt_int_t nxt_http_var_status(nxt_task_t *task, nxt_str_t *str, void *ctx, void *data) { - u_char *p; nxt_http_request_t *r; r = ctx; @@ -465,9 +464,9 @@ nxt_http_var_status(nxt_task_t *task, nxt_str_t *str, void *ctx, void *data) return NXT_ERROR; } - p = nxt_sprintf(str->start, str->start + 3, "%03d", r->status); + (void) nxt_sprintf(str->start, str->start + 3, "%03d", r->status); - str->length = p - str->start; + str->length = 3; return NXT_OK; } |