From 37854f54f97e07b5443a7ec3eb19dcfad6ace5ed Mon Sep 17 00:00:00 2001 From: Jianfeng Tan Date: Thu, 13 Jun 2019 17:57:39 +0800 Subject: l4p: fix compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/libtle_l4p/stream.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit 1.2.3-korg