[patch] ngx_array zero capacity support

Peter Schüller scode at spotify.com
Fri Sep 11 18:43:00 MSD 2009


attached is a patch to make the ngx_array_push() support zero-capacity
arrays. Previously it would fail to grow the data buffer correctly (2
* 0 = 0).

/ Peter Schuller aka scode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngx_array-zero_capacity.diff
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20090911/5c7be2db/attachment.bin>

More information about the nginx mailing list