Permalink
Browse files

fixed two spots of gcc 4.6 warnings.

  • Loading branch information...
1 parent c9f5e02 commit 7a4617ff8fd337c9a3f2a523a85c0f94f2b1dae5 @agentzh agentzh committed Nov 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ngx_http_lua_regex.c
View
@@ -95,7 +95,7 @@ ngx_http_lua_ngx_re_match(lua_State *L)
int i;
ngx_int_t pos = 0;
int nargs;
- int *cap;
+ int *cap = NULL;
int ovecsize;
ngx_uint_t flags;
ngx_pool_t *pool, *old_pool;
@@ -1120,7 +1120,7 @@ ngx_http_lua_ngx_re_sub_helper(lua_State *L, unsigned global)
ngx_uint_t n;
ngx_int_t i;
int nargs;
- int *cap;
+ int *cap = NULL;
int ovecsize;
int type;
unsigned func;

0 comments on commit 7a4617f

Please sign in to comment.