aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJianfeng Tan <henry.tjf@antfin.com>2019-06-13 17:57:39 +0800
committerJianfeng Tan <henry.tjf@antfin.com>2019-06-13 17:57:39 +0800
commit37854f54f97e07b5443a7ec3eb19dcfad6ace5ed (patch)
tree07730caac19aae3652820329b3296ac237a6de40
parent0104c5568c67990aa7d56d2cb8bdcf08c9ed5de5 (diff)
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 <henry.tjf@antfin.com>
-rw-r--r--lib/libtle_l4p/stream.h1
1 files changed, 1 insertions, 0 deletions
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;