Skip to content

Commit

Permalink
Merge pull request #32 from zhuizhuhaomeng/size_of_malloc
Browse files Browse the repository at this point in the history
change: fixed a typo.
  • Loading branch information
simpl committed May 21, 2022
2 parents a22dade + 66132ca commit b4642d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ndk_upstream_list.c
Expand Up @@ -145,7 +145,7 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

/* allocate space for all buckets */

bucket = ngx_palloc (cf->pool, buckets * sizeof (ngx_str_t **));
bucket = ngx_palloc (cf->pool, buckets * sizeof (ngx_str_t *));
if (bucket == NULL)
return NGX_CONF_ERROR;

Expand Down

0 comments on commit b4642d6

Please sign in to comment.