2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 00:55:24 +00:00

4216. [cleanup] Silence static analysis warnings. [RT #40649]

This commit is contained in:
Mark Andrews
2015-09-18 23:30:01 +10:00
parent 2592ee16b5
commit 705d56b47a
7 changed files with 17 additions and 14 deletions

View File

@@ -460,6 +460,8 @@ isc_buffer_allocate(isc_mem_t *mctx, isc_buffer_t **dynbuffer,
length);
dbuf->mctx = mctx;
ENSURE(ISC_BUFFER_VALID(dbuf));
*dynbuffer = dbuf;
return (ISC_R_SUCCESS);
@@ -492,8 +494,6 @@ isc_buffer_reallocate(isc_buffer_t **dynbuffer, unsigned int length) {
dbuf->base = ((unsigned char *)dbuf) + sizeof(isc_buffer_t);
dbuf->length = length;
INSIST(ISC_BUFFER_VALID(dbuf));
*dynbuffer = dbuf;
return (ISC_R_SUCCESS);