summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreenidhi Shedi <sshedi@vmware.com>2022-06-12 23:36:37 +0530
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-06-13 08:41:52 +0900
commita4433b453218ccd5bc8c49ebbfad1df199bb8d4f (patch)
tree13390b6177939ae6ff5e3946393a4556f32a9722
parentef55efe82331e42208078117169c8751f2aa3f74 (diff)
downloadsystemd-a4433b453218ccd5bc8c49ebbfad1df199bb8d4f.tar.gz
network: l2tp: initialize a to NULL
Fixes: CID#1475788
-rw-r--r--src/network/netdev/l2tp-tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/l2tp-tunnel.c b/src/network/netdev/l2tp-tunnel.c
index dcb70bfef2..c38b9dc312 100644
--- a/src/network/netdev/l2tp-tunnel.c
+++ b/src/network/netdev/l2tp-tunnel.c
@@ -280,7 +280,7 @@ static int link_get_l2tp_local_address(Link *link, L2tpTunnel *t, union in_addr_
static int l2tp_get_local_address(NetDev *netdev, union in_addr_union *ret) {
Link *link = NULL;
L2tpTunnel *t;
- Address *a;
+ Address *a = NULL;
int r;
assert(netdev);