X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=c1b3f0b0c7c7cc25cb4455d9b9a5c128cbc2dfbe;hb=51d29979b01ae0316597898f0e25d4bab7fd7d81;hp=6127c0426d2ba4fc36ffdd0d654f564b95b3a829;hpb=79963d13c1884d1d92667cc502ad20758b084a12;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 6127c042..c1b3f0b0 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -390,6 +390,9 @@ static int wh_write_command(const data_set_t *ds, } assert(command_len < cb->send_buffer_free); + /* Make scan-build happy. */ + assert(cb->send_buffer != NULL); + /* `command_len + 1' because `command_len' does not include the * trailing null byte. Neither does `send_buffer_fill'. */ memcpy(cb->send_buffer + cb->send_buffer_fill, command, command_len + 1);