X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=c33ab542b8d23cf59b47f691e6839b5502c011c3;hb=446138394bb95c49d0e05ea440fbf63aefe84bab;hp=6127c0426d2ba4fc36ffdd0d654f564b95b3a829;hpb=79963d13c1884d1d92667cc502ad20758b084a12;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 6127c042..c33ab542 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); @@ -809,5 +812,3 @@ void module_register(void) /* {{{ */ plugin_register_complex_config("write_http", wh_config); plugin_register_init("write_http", wh_init); } /* }}} void module_register */ - -/* vim: set fdm=marker sw=8 ts=8 tw=78 et : */