l4p: fix compile error 12/20112/2
authorJianfeng Tan <henry.tjf@antfin.com>
Thu, 13 Jun 2019 09:57:39 +0000 (17:57 +0800)
committerJianfeng Tan <henry.tjf@antfin.com>
Thu, 13 Jun 2019 09:57:39 +0000 (17:57 +0800)
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>
lib/libtle_l4p/stream.h

index e76f126..49a2809 100644 (file)
@@ -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;