Klaus Demo nginx / 316eafb
fix build on Linux and Solaris introduced in r2200 Igor Sysoev 13 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
279279 ngx_int_t
280280 ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name)
281281 {
282 if (gl->n < (size_t) gl->pglob.gl_matchc) {
282 size_t count;
283
284 #ifdef GLOB_NOMATCH
285 count = (size_t) gl->pglob.gl_pathc;
286 #else
287 count = (size_t) gl->pglob.gl_matchc;
288 #endif
289
290 if (gl->n < count) {
283291
284292 name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]);
285293 name->data = (u_char *) gl->pglob.gl_pathv[gl->n];