From: Jianfeng Tan Date: Thu, 13 Jun 2019 09:57:39 +0000 (+0800) Subject: l4p: fix compile error X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F20112%2F2;p=tldk.git l4p: fix compile error Fix below compile error: error: ‘d6’ may be used uninitialized in this function const struct in6_addr *d6; ^~ Change-Id: Ie8c7fb797e5c5d934651973669b3eee791c35ad3 Signed-off-by: Jianfeng Tan --- diff --git a/lib/libtle_l4p/stream.h b/lib/libtle_l4p/stream.h index e76f126..49a2809 100644 --- a/lib/libtle_l4p/stream.h +++ b/lib/libtle_l4p/stream.h @@ -133,6 +133,7 @@ stream_get_dest(struct tle_stream *s, const void *dst_addr, /* it is here just to keep gcc happy. */ d4 = NULL; + d6 = NULL; if (s->type == TLE_V4) { d4 = dst_addr;