diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-02-22 22:19:35 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-02-22 22:30:23 +0100 |
commit | 4c2e76077a83438bc8bb108934c34ce102d15459 (patch) | |
tree | bca322fb6e611307af55ca3e03a0d3294e8fb377 | |
parent | 2cf5c87b96dd42afa074b9f4a20871a9c46bd07f (diff) |
gtp-genl: fix compilation warning
Fix these compilation warning:
gtp-genl.c:131:8: warning: 'pdp.version' may be used uninitialized in this function [-Wmaybe-uninitialized]
gtp-genl.c:132:8: warning: 'pdp.tid' may be used uninitialized in this function [-Wmaybe-uninitialized]
d CCLD libgtpnl.la
By initializing the pdp object.
-rw-r--r-- | libgtnl/src/gtp-genl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgtnl/src/gtp-genl.c b/libgtnl/src/gtp-genl.c index 4891b08..43ffb30 100644 --- a/libgtnl/src/gtp-genl.c +++ b/libgtnl/src/gtp-genl.c @@ -111,7 +111,7 @@ static int genl_gtp_validate_cb(const struct nlattr *attr, void *data) static int genl_gtp_attr_cb(const struct nlmsghdr *nlh, void *data) { struct nlattr *tb[GTPA_MAX + 1] = {}; - struct gtp_pdp pdp; + struct gtp_pdp pdp = {}; struct genlmsghdr *genl; mnl_attr_parse(nlh, sizeof(*genl), genl_gtp_validate_cb, tb); |