Skip to content

Commit b4642d6

Browse files
authored
Merge pull request #32 from zhuizhuhaomeng/size_of_malloc
change: fixed a typo.
2 parents a22dade + 66132ca commit b4642d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ndk_upstream_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
145145

146146
/* allocate space for all buckets */
147147

148-
bucket = ngx_palloc (cf->pool, buckets * sizeof (ngx_str_t **));
148+
bucket = ngx_palloc (cf->pool, buckets * sizeof (ngx_str_t *));
149149
if (bucket == NULL)
150150
return NGX_CONF_ERROR;
151151

0 commit comments

Comments
 (0)