X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=b3baa555d2393fb7f3d48903afb5cdd4528a7c5b;hb=c76419c0cf983f1ecd3d36aa236cc4e3f9cff733;hp=f8cc4e8df5627a946e0e431087a55b6f7dae5495;hpb=a92b550961ed60b55f391ff073fbe005ba3c1f53;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index f8cc4e8d..b3baa555 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -419,6 +419,9 @@ static int wh_write_command (const data_set_t *ds, const value_list_t *vl, /* {{ } 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,