Commit 8ba130a752 for frr
commit 8ba130a752152c2b416aa2b7b2e9656d36c98c31
Author: Vincent Jardin <vjardin@free.fr>
Date: Mon Nov 9 19:11:07 2026 +0100
bgpd: use NULL for unset string arguments in bgp_sid_vpn_export
sid_auto and sid_explicit are DEFPY string arguments (const char *),
gcc is quiet about that, macOS clang is not:
bgpd/bgp_vty.c:11226:14: warning: initialization of pointer of type 'const char *' to null from a constant boolean expression [-Wbool-conversion]
Signed-off-by: Vincent Jardin <vjardin@free.fr>
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 82cbf512fa..e93e5c6b5d 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -11360,8 +11360,8 @@ DEFPY (bgp_sid_vpn_export,
return CMD_SUCCESS;
sid_idx = 0;
- sid_auto = false;
- sid_explicit = false;
+ sid_auto = NULL;
+ sid_explicit = NULL;
bgp->tovpn_sid_index = 0;
UNSET_FLAG(bgp->vrf_flags, BGP_VRF_TOVPN_SID_AUTO);
UNSET_FLAG(bgp->vrf_flags, BGP_VRF_TOVPN_SID_EXPLICIT);