[PATCH 2 of 3 V2] chg: use mallocx and reallocx in hgclient

Jun Wu quark at fb.com
Wed Feb 17 13:58:40 EST 2016


I found I was wrong, so was the stupid clang-analyzer.
Amend the commit message and "ctx->maxdatasize = ..." line please.

On 02/17/2016 03:08 PM, Jun Wu wrote:
> -	ctx->data = malloc(defaultdatasize);
> +	ctx->data = mallocx(defaultdatasize);
 > 	ctx->maxdatasize = (ctx->data) ? defaultdatasize : 0;


More information about the Mercurial-devel mailing list