Skip to content

Commit fc52e15

Browse files
committed
Merge pull request openresty#322 from zh-ang/master
fixed a compilation warning when PCRE is disabled.
2 parents c50f3cd + 1b96235 commit fc52e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_variable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ ngx_http_lua_ffi_var_get(ngx_http_request_t *r, u_char *name_data,
284284
size_t name_len, u_char *lowcase_buf, int capture_id, u_char **value,
285285
size_t *value_len, char **err)
286286
{
287-
u_char *p;
288287
ngx_uint_t hash;
289288
ngx_str_t name;
290289
ngx_http_variable_value_t *vv;
291290

292291
#if (NGX_PCRE)
292+
u_char *p;
293293
ngx_uint_t n;
294294
int *cap;
295295
#endif

0 commit comments

Comments
 (0)