From 90daa2ff3df365a330af758bc1f8e48f76cbe05e Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Wed, 16 Oct 2024 14:18:53 +0200 Subject: [PATCH] bgpd: Test clang by adding a unused assignment to a function Signed-off-by: Martin Winter --- bgpd/bgp_packet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 6b116db1075d..5a4765b3a10f 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -76,6 +76,8 @@ int bgp_packet_set_marker(struct stream *s, uint8_t type) for (i = 0; i < BGP_MARKER_SIZE; i++) stream_putc(s, 0xff); + malloc(5); + /* Dummy total length. This field is should be filled in later on. */ stream_putw(s, 0);