sr: fix aarch64 build issue 20/42120/3
authorGuillaume Solignac <[email protected]>
Thu, 9 Jan 2025 14:50:15 +0000 (15:50 +0100)
committerGuillaume Solignac <[email protected]>
Thu, 9 Jan 2025 15:37:06 +0000 (16:37 +0100)
GCC complains about a maybe-unitialized variable

Type: fix
Change-Id: Id77e4a48bdefea74d881190675320036f60ee3d5
Signed-off-by: Guillaume Solignac <[email protected]>
src/vnet/srv6/sr_localsid.c

index 2172fa1..47082e9 100644 (file)
@@ -2028,6 +2028,7 @@ sr_localsid_un_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
          vlib_buffer_t *b0;
          ip6_header_t *ip0 = 0;
          ip6_ext_header_t *prev0;
+         prev0 = 0;
          ip6_sr_header_t *sr0;
          u32 next0 = SR_LOCALSID_NEXT_IP6_LOOKUP;
          ip6_sr_localsid_t *ls0;